T
- the type of object storedpublic interface HashLongMap<T> extends InterfaceSizeOf, java.lang.Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
HashLongMap.State
the state of the multiple rows
|
Modifier and Type | Method and Description |
---|---|
long[] |
briefKeyArray()
create an array of the first 200 odd keys
|
void |
clear()
Removes all mappings from this map.
|
java.lang.Object |
clone()
clone the memory handler group.
|
boolean |
containsKey(long key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the
specified value.
|
T |
get(long key)
Returns the value to which this map maps the specified key.
|
long[] |
getKeyArray()
create an array of the keys
|
long[][] |
getKeyData()
create an array of arrays for the keys.
|
long[] |
getSortedKeyArray()
create an array of the keys
SORTED array.
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
boolean |
isInitialized()
is this hash map initialized.
|
boolean |
isKeyArraySorted()
Is the key array sorted ?
|
T |
put(long key,
T orginal)
Associates the specified value with the specified key in this map.
|
void |
putMultiRows(long[] rows,
T value,
HashLongMap.State stateOfRows)
put multiple rows.
|
T |
remove(long key)
Removes the mapping for this key from this map if present.
|
int |
size()
Returns the number of key-value mappings in this map.
|
long |
sizeOf()
calculate the estimated size in bytes
|
@Nonnegative @CheckReturnValue int size()
@CheckReturnValue boolean isEmpty()
@CheckReturnValue @Nonnull java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- doesn't happen.@CheckReturnValue boolean containsValue(@Nonnull java.lang.Object value)
value
- value whose presence in this map is to be tested.@CheckReturnValue @Nonnull long[] briefKeyArray()
@CheckReturnValue @Nonnull long[] getKeyArray()
@CheckReturnValue @Nonnull long[][] getKeyData()
@CheckReturnValue boolean isKeyArraySorted()
@CheckReturnValue @Nonnull long[] getSortedKeyArray()
@CheckReturnValue boolean containsKey(long key)
key
- key whose presence in this Map is to be tested.@CheckReturnValue @Nullable T get(long key)
key
- key whose associated value is to be returned.@Nullable T put(long key, T orginal)
orginal
- The object to place into the table.key
- key with which the specified value is to be associated.void putMultiRows(@Nonnull long[] rows, @Nullable T value, @Nonnull HashLongMap.State stateOfRows)
rows
- the rowsvalue
- the valuestateOfRows
- are these rows known to be sorted ? MAYBE null if you don't know@Nullable T remove(long key)
key
- key whose mapping is to be removed from the map.void clear()
@CheckReturnValue long sizeOf()
sizeOf
in interface InterfaceSizeOf
@CheckReturnValue boolean isInitialized()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.