| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| public static final StringDataType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | binarySearch(String
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)Overrides org. Implements org. Perform binary search for the key within the storage |
| public int | compare(String
the first key a, String the second key b)Overrides org. Implements org. Compare two keys. |
| public String[] | createStorage(int
number of values to hold size)Implements org. Create storage object of array type to hold values |
| public int | getMemory(String
the object obj)Implements abstract org. Implements org. Calculates the amount of used memory in bytes. |
| public String | read(ByteBuffer
the source buffer buff)Implements abstract org. Implements org. Read an object. |
| public void | write(WriteBuffer
the target buffer buff, String the value s)Implements abstract org. Implements org. Write an object. |
| EMPTY_STRING_ARR | back to summary |
|---|---|
| private static final String[] EMPTY_STRING_ARR | |
| INSTANCE | back to summary |
|---|---|
| public static final StringDataType INSTANCE | |
| StringDataType | back to summary |
|---|---|
| public StringDataType() | |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(String key, Object storageObj, int size, int initialGuess) Overrides org. Implements org. Doc from org. Perform binary search for the key within the storage | |
| compare | back to summary |
|---|---|
| public int compare(String a, String b) Overrides org. Implements org. Doc from org. Compare two keys. | |
| createStorage | back to summary |
|---|---|
| public String[] createStorage(int size) Implements org. Doc from org. Create storage object of array type to hold values | |
| getMemory | back to summary |
|---|---|
| public int getMemory(String obj) Implements abstract org. Implements org. Doc from org. Calculates the amount of used memory in bytes. | |
| read | back to summary |
|---|---|
| public String read(ByteBuffer buff) Implements abstract org. Implements org. Doc from org. Read an object.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, String s) Implements abstract org. Implements org. Doc from org. Write an object.
| |