it.unimi.dsi.fastutil.objects
Class AbstractReference2ByteMap.BasicEntry<K>

java.lang.Object
  extended by it.unimi.dsi.fastutil.objects.AbstractReference2ByteMap.BasicEntry<K>
All Implemented Interfaces:
Reference2ByteMap.Entry<K>, Map.Entry<K,Byte>
Enclosing class:
AbstractReference2ByteMap<K>

public static class AbstractReference2ByteMap.BasicEntry<K>
extends Object
implements Reference2ByteMap.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.


Constructor Summary
AbstractReference2ByteMap.BasicEntry(K key, byte value)
           
AbstractReference2ByteMap.BasicEntry(K key, Byte value)
           
 
Method Summary
 boolean equals(Object o)
           
 byte getByteValue()
           
 K getKey()
           
 Byte getValue()
           
 int hashCode()
           
 byte setValue(byte value)
           
 Byte setValue(Byte value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractReference2ByteMap.BasicEntry

public AbstractReference2ByteMap.BasicEntry(K key,
                                            Byte value)

AbstractReference2ByteMap.BasicEntry

public AbstractReference2ByteMap.BasicEntry(K key,
                                            byte value)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface Map.Entry<K,Byte>

getValue

public Byte getValue()
Specified by:
getValue in interface Map.Entry<K,Byte>

getByteValue

public byte getByteValue()
Specified by:
getByteValue in interface Reference2ByteMap.Entry<K>
See Also:
Map.Entry.getValue()

setValue

public byte setValue(byte value)
Specified by:
setValue in interface Reference2ByteMap.Entry<K>
See Also:
Map.Entry.setValue(Object)

setValue

public Byte setValue(Byte value)
Specified by:
setValue in interface Map.Entry<K,Byte>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry<K,Byte>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<K,Byte>
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object