Class TreeBidiMap.Node<K extends Comparable<K>,V extends Comparable<V>>
- java.lang.Object
-
- org.apache.commons.collections4.bidimap.TreeBidiMap.Node<K,V>
-
- Enclosing class:
- TreeBidiMap<K extends Comparable<K>,V extends Comparable<V>>
static class TreeBidiMap.Node<K extends Comparable<K>,V extends Comparable<V>> extends Object implements Map.Entry<K,V>, KeyValue<K,V>
A node used to store the data.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Compares the specified object with this entry for equality.KgetKey()Gets the key.VgetValue()Gets the value.inthashCode()VsetValue(V ignored)Optional operation that is not permitted in this implementation
-
-
-
Method Detail
-
getKey
public K getKey()
Gets the key.- Specified by:
getKeyin interfaceKeyValue<K extends Comparable<K>,V extends Comparable<V>>- Specified by:
getKeyin interfaceMap.Entry<K extends Comparable<K>,V extends Comparable<V>>- Returns:
- the key corresponding to this entry.
-
getValue
public V getValue()
Gets the value.- Specified by:
getValuein interfaceKeyValue<K extends Comparable<K>,V extends Comparable<V>>- Specified by:
getValuein interfaceMap.Entry<K extends Comparable<K>,V extends Comparable<V>>- Returns:
- the value corresponding to this entry.
-
setValue
public V setValue(V ignored) throws UnsupportedOperationException
Optional operation that is not permitted in this implementation- Specified by:
setValuein interfaceMap.Entry<K extends Comparable<K>,V extends Comparable<V>>- Parameters:
ignored- this parameter is ignored.- Returns:
- does not return
- Throws:
UnsupportedOperationException- always
-
equals
public boolean equals(Object obj)
Compares the specified object with this entry for equality. Returns true if the given object is also a map entry and the two entries represent the same mapping.- Specified by:
equalsin interfaceMap.Entry<K extends Comparable<K>,V extends Comparable<V>>- Overrides:
equalsin classObject- Parameters:
obj- the object to be compared for equality with this entry.- Returns:
- true if the specified object is equal to this entry.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap.Entry<K extends Comparable<K>,V extends Comparable<V>>- Overrides:
hashCodein classObject- Returns:
- the hash code value for this map entry.
-
-