| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public static < The type of the index V> Index. | Returns: A case sensitive mutable Index tacking visible ASCII alphabet to a max capacity.The max capacity of the index maxCapacity)A special purpose static builder for fast creation of specific Index type |
| public default boolean | |
| public static <V> Index | |
| public V | |
| public V | Returns: The value or null if not foundThe buffer b)Get an exact match from a segment of a ByteBuffer as key |
| public V | |
| public V | Returns: The value or null if not foundThe buffer b, int The offset within the buffer of the key offset, int the length of the key len)Get an exact match from a segment of a ByteBuffer as key |
| public V | |
| public V | |
| public V | Returns: The value or null if not foundThe buffer b, int The offset within the buffer of the key offset, int the length of the key len)Get the best match from key in a byte buffer. |
| public default V | Returns: The value or null if not foundThe buffer b)Get the best match from key in a byte buffer. |
| public V | Returns: The value or null if not foundThe buffer b, int The offset within the array of the key offset, int the length of the key len)Get the best match from key in a byte array. |
| public default V | Returns: The value or null if not foundThe buffer b)Get the best match from key in a byte array. |
| public boolean | Returns: true if the index does not contain any entry.Check if the index contains any entry. |
| public Set | |
| public int |
| buildMutableVisibleAsciiAlphabet | back to summary |
|---|---|
| public static <V> Index. A special purpose static builder for fast creation of specific Index type | |
| contains | back to summary |
|---|---|
| public default boolean contains(String s) Check if there is an exact match from a String key
| |
| empty | back to summary |
|---|---|
| public static <V> Index | |
| get | back to summary |
|---|---|
| public V get(String s) Get an exact match from a String key
| |
| get | back to summary |
|---|---|
| public V get(ByteBuffer b) Get an exact match from a segment of a ByteBuffer as key
| |
| get | back to summary |
|---|---|
| public V get(String s, int offset, int len) Get an exact match from a String key
| |
| get | back to summary |
|---|---|
| public V get(ByteBuffer b, int offset, int len) Get an exact match from a segment of a ByteBuffer as key
| |
| getBest | back to summary |
|---|---|
| public V getBest(String s, int offset, int len) Get the best match from key in a String.
| |
| getBest | back to summary |
|---|---|
| public V getBest(String s) Get the best match from key in a String, which may be a prefix match or an exact match.
| |
| getBest | back to summary |
|---|---|
| public V getBest(ByteBuffer b, int offset, int len) Get the best match from key in a byte buffer. The key is assumed to by ISO_8859_1 characters.
| |
| getBest | back to summary |
|---|---|
| public default V getBest(ByteBuffer b) Get the best match from key in a byte buffer. The key is assumed to by ISO_8859_1 characters.
| |
| getBest | back to summary |
|---|---|
| public V getBest(byte[] b, int offset, int len) Get the best match from key in a byte array. The key is assumed to by ISO_8859_1 characters.
| |
| getBest | back to summary |
|---|---|
| public default V getBest(byte[] b) Get the best match from key in a byte array. The key is assumed to by ISO_8859_1 characters.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Check if the index contains any entry.
| |
| keySet | back to summary |
|---|---|
| public Set Get a | |
| size | back to summary |
|---|---|
| public int size() Get the number of entries in the index.
| |
Index instances.
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Index | |
| public Index. | Returns: thistrue if the index has to be case-sensitive caseSensitive)Configure the index to be either case-sensitive or not. |
| private Map | |
| public Index. | |
| public String | |
| public Index. | Returns: thisThe value value)Configure a pre-existing entry with a key
that is the |
| public Index. | |
| public Index. | |
| public Index. |
| caseSensitive | back to summary |
|---|---|
| pack-priv boolean caseSensitive | |
| contents | back to summary |
|---|---|
| pack-priv Map<String, V> contents | |
| Builder | back to summary |
|---|---|
| public Builder() Create a new index builder instance. | |
| Builder | back to summary |
|---|---|
| pack-priv Builder(boolean caseSensitive, Map<String, V> contents) | |
| build | back to summary |
|---|---|
| public Index Build a | |
| caseSensitive | back to summary |
|---|---|
| public Index. Configure the index to be either case-sensitive or not. Default value is false. | |
| contents | back to summary |
|---|---|
| private Map | |
| mutable | back to summary |
|---|---|
| public Index. Configure the index to be mutable.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| with | back to summary |
|---|---|
| public Index. Configure a pre-existing entry with a key
that is the | |
| with | back to summary |
|---|---|
| public Index. Configure a pre-existing entry. | |
| withAll | back to summary |
|---|---|
| public Index. Configure some pre-existing entries. | |
| withAll | back to summary |
|---|---|
| public Index. Configure some pre-existing entries. | |
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public boolean | Returns: True if the Trie had capacity to add the field.The value and key v)Put a value as both a key and a value. |
| public V |
| clear | back to summary |
|---|---|
| public void clear() Remove all entries from the index. | |
| put | back to summary |
|---|---|
| public boolean put(String s, V v) Put an entry into the index.
| |
| put | back to summary |
|---|---|
| public boolean put(V v) Put a value as both a key and a value.
| |
| remove | back to summary |
|---|---|
| public V remove(String s) Remove an entry from the index.
| |
Index.Mutable instances. Such builder cannot be
directly created, it is instead returned by calling Index.Builder#mutable() .
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Index. | Returns: aMutable instance.Overrides org. Build a |
| public Index. | Returns: thisthe maximum capacity of the index. capacity)Configure a maximum capacity for the mutable index. |
| public Index. | Returns: aMutable. configured like this builder.Overrides org. Configure the index to be mutable. |
| maxCapacity | back to summary |
|---|---|
| private int maxCapacity | |
| Builder | back to summary |
|---|---|
| pack-priv Builder(boolean caseSensitive, Map<String, V> contents) | |
| build | back to summary |
|---|---|
| public Index. Overrides org. Build a | |
| maxCapacity | back to summary |
|---|---|
| public Index. Configure a maximum capacity for the mutable index. A negative value means there is no capacity limit and the index can grow without limits. The default value is -1. | |
| mutable | back to summary |
|---|---|
| public Index. Overrides org. Configure the index to be mutable.
| |