|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.data.PairArray
public class PairArray
| Constructor Summary | |
|---|---|
PairArray()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
int |
compare(int index,
java.lang.Object key)
Compares the key of the item at the given index using the key given, based on the default ordering. |
int |
compare(int index,
java.lang.Object key,
java.util.Comparator comp)
Compares the key of the item at the given index using the key and ordering given. |
int |
findClosest(java.lang.String key)
|
java.lang.Object |
get(int index)
|
java.lang.Object |
get(java.lang.Object key)
|
java.lang.Object |
getKey(int index)
|
int |
getSize()
Returns the number of items in the array. |
int |
indexOf(java.lang.Object key)
|
java.lang.Object |
keyAt(int index)
Gets the key object from the given index. |
void |
put(java.lang.Object key,
java.lang.Object value)
|
void |
sort()
|
void |
swap(int a,
int b)
Swaps the items at the two index positions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PairArray()
| Method Detail |
|---|
public void put(java.lang.Object key,
java.lang.Object value)
public int findClosest(java.lang.String key)
public java.lang.Object get(java.lang.Object key)
public int indexOf(java.lang.Object key)
public java.lang.Object get(int index)
public java.lang.Object getKey(int index)
public void clear()
public void sort()
public int compare(int index,
java.lang.Object key)
compare in interface ArraySearchingGophercompare in interface ArraySortingGopher
public int compare(int index,
java.lang.Object key,
java.util.Comparator comp)
compare in interface ArraySearchingGophercompare in interface ArraySortingGopherpublic java.lang.Object keyAt(int index)
keyAt in interface ArraySortingGopherpublic int getSize()
getSize in interface ArraySearchingGophergetSize in interface ArraySortingGopher
public void swap(int a,
int b)
swap in interface ArraySortingGopher
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||