Package nl.tue.astar.util
Class ShortShortMultiset
- java.lang.Object
-
- nl.tue.astar.util.ShortShortMultiset
-
public class ShortShortMultiset extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intnumElts
-
Constructor Summary
Constructors Constructor Description ShortShortMultiset(short length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustValue(short key, short amount)ShortShortMultisetclone()booleanequals(java.lang.Object other)booleanforEachEntry(gnu.trove.procedure.TShortShortProcedure tShortShortProcedure)shortget(short key)short[]getInternalValues()shortgetLength()intgetNumElts()static intgetSizeInMemory(int length)inthashCode()voidincreaseValue(short key)booleanisEmpty()voidput(short key, short value)shortsize()java.lang.StringtoString()
-
-
-
Method Detail
-
getSizeInMemory
public static int getSizeInMemory(int length)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
size
public short size()
-
getNumElts
public int getNumElts()
-
adjustValue
public void adjustValue(short key, short amount)
-
increaseValue
public void increaseValue(short key)
-
put
public void put(short key, short value)
-
getLength
public short getLength()
-
forEachEntry
public boolean forEachEntry(gnu.trove.procedure.TShortShortProcedure tShortShortProcedure)
-
get
public short get(short key)
-
isEmpty
public boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clone
public ShortShortMultiset clone()
- Overrides:
clonein classjava.lang.Object
-
getInternalValues
public short[] getInternalValues()
-
-