| Modifier and Type | Field and Description |
|---|---|
private java.lang.CharSequence |
key |
private T |
value |
| Constructor and Description |
|---|
Entry(java.lang.CharSequence key,
T value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.util.Map.Entry other) |
boolean |
equals(java.lang.Object o) |
java.lang.CharSequence |
getKey() |
T |
getValue() |
int |
hashCode() |
(package private) static <T> HashTrie.Entry<T> |
newInstanceIfNeeded(java.lang.CharSequence key,
int keyLength,
T value)
Convinence instantiator.
|
(package private) static <T> HashTrie.Entry<T> |
newInstanceIfNeeded(java.lang.CharSequence key,
T value)
Convinence instantiator.
|
T |
setValue(T value) |
java.lang.String |
toString() |
private java.lang.CharSequence key
private T value
Entry(java.lang.CharSequence key,
T value)
static <T> HashTrie.Entry<T> newInstanceIfNeeded(java.lang.CharSequence key, int keyLength, T value)
key - The key for the new instancekeyLength - The length of the key to usevalue - The value for the new instanceCharSequence.length() == keyLength
new Entry(key.subSequence(0,keyLength),value) otherwisestatic <T> HashTrie.Entry<T> newInstanceIfNeeded(java.lang.CharSequence key, T value)
key - The key for the new instancevalue - The value for the new instancepublic java.lang.CharSequence getKey()
getKey in interface java.util.Map.Entry<java.lang.CharSequence,T>public T getValue()
getValue in interface java.util.Map.Entry<java.lang.CharSequence,T>public T setValue(T value)
setValue in interface java.util.Map.Entry<java.lang.CharSequence,T>public boolean equals(java.util.Map.Entry other)
public boolean equals(java.lang.Object o)
equals in interface java.util.Map.Entry<java.lang.CharSequence,T>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.CharSequence,T>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object