public final class HashLongMapV8 extends java.lang.Object implements HashLongMap, java.lang.Cloneable
HashLongMap.State| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_OF
MEMORY USAGE: The number of bytes for one instance of a HashLongMap
|
| Constructor and Description |
|---|
HashLongMapV8()
Constructs a new, empty map with a default capacity and load
factor, which is 0.75.
|
HashLongMapV8(int initialCapacity)
Constructs a new, empty map with the specified initial capacity
and default load factor, which is 0.75.
|
| 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.
|
java.lang.Object |
get(long key)
Returns the value to which this map maps the specified key.
|
long[] |
getKeyArray()
create an array of the keys SHARED.
|
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 ?
|
java.lang.Object |
put(long key,
java.lang.Object value)
Associates the specified value with the specified key in this map.
|
void |
putMultiRows(long[] rows,
java.lang.Object value,
HashLongMap.State stateOfRows)
put multiple rows.
|
java.lang.Object |
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
|
public static final int SIZE_OF
public HashLongMapV8(int initialCapacity)
initialCapacity - the initial capacity of the HashMap.public HashLongMapV8()
public boolean isInitialized()
isInitialized in interface HashLongMappublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface HashLongMapclone in class java.lang.Objectjava.lang.CloneNotSupportedException - doesn't happen.public int size()
size in interface HashLongMappublic boolean isEmpty()
isEmpty in interface HashLongMappublic boolean containsValue(java.lang.Object value)
containsValue in interface HashLongMapvalue - value whose presence in this map is to be tested.public long[] briefKeyArray()
briefKeyArray in interface HashLongMappublic long[] getKeyArray()
getKeyArray in interface HashLongMappublic boolean isKeyArraySorted()
isKeyArraySorted in interface HashLongMappublic long[] getSortedKeyArray()
getSortedKeyArray in interface HashLongMappublic boolean containsKey(long key)
containsKey in interface HashLongMapkey - key whose presence in this Map is to be tested.public java.lang.Object get(long key)
get in interface HashLongMapkey - key whose associated value is to be returned.public java.lang.Object put(long key,
java.lang.Object value)
put in interface HashLongMapvalue - The object to place into the table.key - key with which the specified value is to be associated.public void putMultiRows(@Nonnull
long[] rows,
@Nullable
java.lang.Object value,
@Nonnull
HashLongMap.State stateOfRows)
putMultiRows in interface HashLongMaprows - the rowsvalue - the valuestateOfRows - are these rows known to be sorted ?public java.lang.Object remove(long key)
remove in interface HashLongMapkey - key whose mapping is to be removed from the map.public void clear()
clear in interface HashLongMappublic long sizeOf()
sizeOf in interface HashLongMapsizeOf in interface InterfaceSizeOfpublic long[][] getKeyData()
HashLongMapgetKeyData in interface HashLongMapstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.