|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.io.formats.ObjectDumpSortingGopher
public class ObjectDumpSortingGopher
A specific gopher for sorting ObjectDump files.
| Constructor Summary | |
|---|---|
ObjectDumpSortingGopher(ObjectDump dump)
|
|
| Method Summary | |
|---|---|
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 |
getSize()
Returns the number of items in the array. |
java.lang.Object |
keyAt(int index)
Gets the key object from the given index. |
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 ObjectDumpSortingGopher(ObjectDump dump)
| Method Detail |
|---|
public int compare(int index,
java.lang.Object key)
ArraySortingGopher
compare in interface ArraySortingGopher
public int compare(int index,
java.lang.Object key,
java.util.Comparator comp)
ArraySortingGopher
compare in interface ArraySortingGopherpublic java.lang.Object keyAt(int index)
ArraySortingGopher
keyAt in interface ArraySortingGopher
public void swap(int a,
int b)
swap in interface ArraySortingGopherpublic int getSize()
ArraySortingGopher
getSize in interface ArraySortingGopher
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||