Class AbstractBitwiseTrie.BasicEntry<K,V>
- java.lang.Object
-
- org.apache.commons.collections4.trie.AbstractBitwiseTrie.BasicEntry<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map.Entry<K,V>
- Direct Known Subclasses:
AbstractPatriciaTrie.TrieEntry
- Enclosing class:
- AbstractBitwiseTrie<K,V>
abstract static class AbstractBitwiseTrie.BasicEntry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>, java.io.Serializable
A basic implementation ofMap.Entry
.
-
-
Field Summary
Fields Modifier and Type Field Description protected K
key
private static long
serialVersionUID
protected V
value
-
Constructor Summary
Constructors Constructor Description BasicEntry(K key)
BasicEntry(K key, V value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
K
getKey()
V
getValue()
int
hashCode()
V
setKeyValue(K key, V value)
Replaces the current key and value with the provided key & value.V
setValue(V value)
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
key
protected K key
-
value
protected V value
-
-
Method Detail
-
setKeyValue
public V setKeyValue(K key, V value)
Replaces the current key and value with the provided key & value.
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object o)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-