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.SerializableA basic implementation ofMap.Entry.
-
-
Field Summary
Fields Modifier and Type Field Description protected Kkeyprivate static longserialVersionUIDprotected Vvalue
-
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 booleanequals(java.lang.Object o)KgetKey()VgetValue()inthashCode()VsetKeyValue(K key, V value)Replaces the current key and value with the provided key & value.VsetValue(V value)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-