|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.prototype.Compression.Chipmunk
public static class Compression.Chipmunk
| Field Summary | |
|---|---|
int[] |
counts
|
int |
rememberMe
|
java.lang.String[] |
strings
|
| Constructor Summary | |
|---|---|
Compression.Chipmunk(CountingBag county)
|
|
| Method Summary | |
|---|---|
int |
compare(int index)
Compares the key of the item at the given index with the current remembered key. |
int |
getSize()
Returns the number of items in the array. |
void |
remember(int index)
Remembers the key at the given index for future comparisons. |
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 |
| Field Detail |
|---|
public java.lang.String[] strings
public int[] counts
public int rememberMe
| Constructor Detail |
|---|
public Compression.Chipmunk(CountingBag county)
| Method Detail |
|---|
public void remember(int index)
ArraySortingGopher
remember in interface ArraySortingGopherpublic int compare(int index)
ArraySortingGopher
compare in interface ArraySortingGopherpublic int getSize()
ArraySortingGopher
getSize in interface ArraySortingGopher
public void swap(int a,
int b)
ArraySortingGopher
swap in interface ArraySortingGopher
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||