Package org.nd4j.common.collection
Class MultiDimensionalMap.Entry<K,T,V>
- java.lang.Object
-
- org.nd4j.common.collection.MultiDimensionalMap.Entry<K,T,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KgetFirstKey()Pair<K,T>getKey()Returns the key corresponding to this entry.TgetSecondKey()VgetValue()voidsetFirstKey(K firstKey)voidsetSecondKey(T secondKey)VsetValue(V value)Replaces the value corresponding to this entry with the specified value (optional operation).
-
-
-
Method Detail
-
getFirstKey
public K getFirstKey()
-
setFirstKey
public void setFirstKey(K firstKey)
-
getSecondKey
public T getSecondKey()
-
setSecondKey
public void setSecondKey(T secondKey)
-
setValue
public V setValue(V value)
Replaces the value corresponding to this entry with the specified value (optional operation). (Writes through to the map.) The behavior of this call is undefined if the mapping has already been removed from the map (by the iterator's remove operation).- Specified by:
setValuein interfaceMap.Entry<K,T>- Parameters:
value- new value to be stored in this entry- Returns:
- old value corresponding to the entry
- Throws:
UnsupportedOperationException- if the put operation is not supported by the backing mapClassCastException- if the class of the specified value prevents it from being stored in the backing mapNullPointerException- if the backing map does not permit null values, and the specified value is nullIllegalArgumentException- if some property of this value prevents it from being stored in the backing mapIllegalStateException- implementations may, but are not required to, throw this exception if the entry has been removed from the backing map.
-
getKey
public Pair<K,T> getKey()
Returns the key corresponding to this entry.- Specified by:
getKeyin interfaceMap.Entry<K,T>- Returns:
- the key corresponding to this entry
- Throws:
IllegalStateException- implementations may, but are not required to, throw this exception if the entry has been removed from the backing map.
-
-