| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | binarySearch(T
to search for key, Object to search within (an array of type T) storageObj, int number of data items in the storage size, int for key position initialGuess)Implements org. Perform binary search for the key within the storage |
| protected final T[] | |
| public int | compare(T
the first key a, T the second key b)Implements org. Compare two keys. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Implements java. Indicates whether some other object is "equal to" this comparator. |
| public abstract int | getMemory(T
the object obj)Redeclares org. Calculates the amount of used memory in bytes. |
| public int | |
| public boolean | isMemoryEstimationAllowed()
Implements org. Whether memory estimation based on previously seen values is allowed/desirable |
| public abstract T | |
| public void | read(ByteBuffer
the target buffer buff, Object the objects storage, int the number of objects to read len)Implements org. Read a list of objects. |
| public abstract void | write(WriteBuffer
the target buffer buff, T the value obj)Redeclares org. Write an object. |
| public void | write(WriteBuffer
the target buffer buff, Object the objects storage, int the number of objects to write len)Implements org. Write a list of objects. |
| BasicDataType | back to summary |
|---|---|
| public BasicDataType() | |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(T key, Object storageObj, int size, int initialGuess) Implements org. Doc from org. Perform binary search for the key within the storage | |
| cast | back to summary |
|---|---|
| protected final T[] cast(Object storage) Cast the storage object to an array of type T.
| |
| compare | back to summary |
|---|---|
| public int compare(T a, T b) Implements org. Doc from org. Compare two keys.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Doc from java. Indicates whether some other object is "equal to"
this comparator. This method must obey the general contract of
Note that it is always safe not to override
| |
| getMemory | back to summary |
|---|---|
| public abstract int getMemory(T obj) Redeclares org. Doc from org. Calculates the amount of used memory in bytes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isMemoryEstimationAllowed | back to summary |
|---|---|
| public boolean isMemoryEstimationAllowed() Implements org. Doc from org. Whether memory estimation based on previously seen values is allowed/desirable
| |
| read | back to summary |
|---|---|
| public abstract T read(ByteBuffer buff) Redeclares org. Doc from org. Read an object.
| |
| read | back to summary |
|---|---|
| public void read(ByteBuffer buff, Object storage, int len) Implements org. Doc from org. Read a list of objects.
| |
| write | back to summary |
|---|---|
| public abstract void write(WriteBuffer buff, T obj) Redeclares org. Doc from org. Write an object.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, Object storage, int len) Implements org. Doc from org. Write a list of objects.
| |