it.unimi.dsi.fastutil.objects
Class AbstractReference2IntMap.BasicEntry<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2IntMap.BasicEntry<K>
- All Implemented Interfaces:
- Reference2IntMap.Entry<K>, Map.Entry<K,Integer>
- Enclosing class:
- AbstractReference2IntMap<K>
public static class AbstractReference2IntMap.BasicEntry<K>
- extends Object
- implements Reference2IntMap.Entry<K>
This class provides a basic but complete type-specific entry class for all those maps implementations
that do not have entries on their own (e.g., most immutable maps).
This class does not implement setValue(), as the modification
would not be reflected in the base map.
AbstractReference2IntMap.BasicEntry
public AbstractReference2IntMap.BasicEntry(K key,
Integer value)
AbstractReference2IntMap.BasicEntry
public AbstractReference2IntMap.BasicEntry(K key,
int value)
getKey
public K getKey()
- Specified by:
getKey in interface Map.Entry<K,Integer>
getValue
public Integer getValue()
- Specified by:
getValue in interface Map.Entry<K,Integer>
getIntValue
public int getIntValue()
- Specified by:
getIntValue in interface Reference2IntMap.Entry<K>
- See Also:
Map.Entry.getValue()
setValue
public int setValue(int value)
- Specified by:
setValue in interface Reference2IntMap.Entry<K>
- See Also:
Map.Entry.setValue(Object)
setValue
public Integer setValue(Integer value)
- Specified by:
setValue in interface Map.Entry<K,Integer>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Map.Entry<K,Integer>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Map.Entry<K,Integer>- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object