public static class AbstractByte2LongMap.BasicEntry extends java.lang.Object implements Byte2LongMap.Entry
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(byte key,
long value)
A Type Specific Constructor
|
BasicEntry(java.lang.Byte key,
java.lang.Long value)
A Boxed Constructor for supporting java variants
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey()
Type Specific getKey method that reduces boxing/unboxing
|
long |
getLongValue()
Type Specific getValue method that reduces boxing/unboxing
|
int |
hashCode() |
void |
set(byte key,
long value)
A Helper method for fast replacing values
|
long |
setValue(long value)
Type Specific setValue method that reduces boxing/unboxing
|
java.lang.String |
toString() |
getKey, getValue, setValuepublic BasicEntry()
public BasicEntry(java.lang.Byte key,
java.lang.Long value)
key - the key of a entryvalue - the value of a entrypublic BasicEntry(byte key,
long value)
key - the key of a entryvalue - the value of a entrypublic void set(byte key,
long value)
key - the key that should be replacedvalue - the value that should be replacedpublic byte getByteKey()
Byte2LongMap.EntrygetByteKey in interface Byte2LongMap.Entrypublic long getLongValue()
Byte2LongMap.EntrygetLongValue in interface Byte2LongMap.Entrypublic long setValue(long value)
Byte2LongMap.EntrysetValue in interface Byte2LongMap.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.Byte,java.lang.Long>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Byte,java.lang.Long>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object