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