public static class AbstractInt2ShortMap.BasicEntry extends java.lang.Object implements Int2ShortMap.Entry
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(java.lang.Integer key,
java.lang.Short value)
A Boxed Constructor for supporting java variants
|
BasicEntry(int key,
short value)
A Type Specific Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIntKey()
Type Specific getKey method that reduces boxing/unboxing
|
short |
getShortValue()
Type Specific getValue method that reduces boxing/unboxing
|
int |
hashCode() |
void |
set(int 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() |
getKey, getValue, setValuepublic BasicEntry()
public BasicEntry(java.lang.Integer key,
java.lang.Short value)
key - the key of a entryvalue - the value of a entrypublic BasicEntry(int key,
short value)
key - the key of a entryvalue - the value of a entrypublic void set(int key,
short value)
key - the key that should be replacedvalue - the value that should be replacedpublic int getIntKey()
Int2ShortMap.EntrygetIntKey in interface Int2ShortMap.Entrypublic short getShortValue()
Int2ShortMap.EntrygetShortValue in interface Int2ShortMap.Entrypublic short setValue(short value)
Int2ShortMap.EntrysetValue in interface Int2ShortMap.Entryvalue - the new Value that should be placed in the given entrypublic boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entry<java.lang.Integer,java.lang.Short>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Integer,java.lang.Short>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object