T - the type of elements maintained by this Collectionpublic static class AbstractObject2ShortMap.BasicEntry<T> extends java.lang.Object implements Object2ShortMap.Entry<T>
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(T key,
short value)
A Type Specific Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
getKey() |
short |
getShortValue()
Type Specific getValue method that reduces boxing/unboxing
|
int |
hashCode() |
void |
set(T key,
short value)
A Helper method for fast replacing values
|
short |
setValue(short value)
Type Specific setValue method that reduces boxing/unboxing
|
java.lang.String |
toString() |
getValue, setValuepublic BasicEntry()
public BasicEntry(T key, short value)
key - the key of a entryvalue - the value of a entrypublic void set(T key, short value)
key - the key that should be replacedvalue - the value that should be replacedpublic short getShortValue()
Object2ShortMap.EntrygetShortValue in interface Object2ShortMap.Entry<T>public short setValue(short value)
Object2ShortMap.EntrysetValue in interface Object2ShortMap.Entry<T>value - the new Value that should be placed in the given entrypublic boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entry<T,java.lang.Short>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<T,java.lang.Short>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object