V
- - Value typepublic class LongHashMap<V> extends BasicWrapper<LongObjectHashMapHandle>
handle
Constructor and Description |
---|
LongHashMap()
Constructs a new LongHashMap
|
LongHashMap(int initialCapacity)
Constructs a new LongHashMap with an initial capacity as specified
|
LongHashMap(Object handle) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all stored entries from this long hash map
|
boolean |
contains(int msw,
int lsw)
Checks whether this Long HashMap contains the coordinates specified.
Warning: this method was added in v1.54 and is not compatible with MC 1.5.2. |
boolean |
contains(long key) |
V |
get(int msw,
int lsw)
Gets the value stored at the coordinates specified.
Warning: this method was added in v1.54 and is not compatible with MC 1.5.2. |
V |
get(long key) |
long[] |
getKeys() |
Collection<V> |
getValues() |
void |
put(int msw,
int lsw,
V value)
Puts a value at the coordinates specified.
Warning: this method was added in v1.54 and is not compatible with MC 1.5.2. |
void |
put(long key,
V value) |
V |
remove(int msw,
int lsw)
Removes and obtains the value stored at the coordinates specified.
Warning: this method was added in v1.54 and is not compatible with MC 1.5.2. |
V |
remove(long key) |
int |
size()
Gets the amount of Long:Value pairs stored in this LongHashMap
|
equals, getHandle, getHandle, getRawHandle, getRawHandle, setHandle, toString
public LongHashMap()
public LongHashMap(int initialCapacity)
initialCapacity
- for the new LongHashMappublic LongHashMap(Object handle)
public int size()
public void clear()
public boolean contains(int msw, int lsw)
msw
- - most significant part of the keylsw
- - least signfificant part of the keypublic boolean contains(long key)
public V get(int msw, int lsw)
msw
- - most significant part of the keylsw
- - least signfificant part of the keypublic V get(long key)
public V remove(int msw, int lsw)
msw
- - most significant part of the keylsw
- - least signfificant part of the keypublic V remove(long key)
public void put(int msw, int lsw, V value)
msw
- - most significant part of the keylsw
- - least signfificant part of the keyvalue
- to put at the coordinatespublic void put(long key, V value)
public Collection<V> getValues()
public long[] getKeys()
Copyright © 2019. All rights reserved.