Package com.polytechnik.utils
Class LongTreeValueMapTest<V>
java.lang.Object
com.polytechnik.utils.LongHashMap<V>
com.polytechnik.utils.LongTreeValueMapTest<V>
An unoptimized TreeMap, just for testing.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.polytechnik.utils.LongHashMap
LongHashMap.TLongObjectProcedure<V>
-
Field Summary
FieldsFields inherited from class com.polytechnik.utils.LongHashMap
loadFactor, modCount, size, table, threshold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes all mappings from this map.final int
copyValues
(V[] valuesarr) static void
Associates the specified value with the specified key in this map.remove
(long key) Removes the mapping for this key from this map if present.(package private) static void
test_order
(Random r) Methods inherited from class com.polytechnik.utils.LongHashMap
containsKey, copyKeys, copyKeysAndValues, forEachEntry, forEachEntry, get, getEntry, isEmpty, rehash, removeEntryForKey, size
-
Field Details
-
PRESENT
-
data
-
-
Constructor Details
-
LongTreeValueMapTest
-
-
Method Details
-
put
Description copied from class:LongHashMap
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.- Overrides:
put
in classLongHashMap<V>
- Parameters:
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.- Returns:
- previous value associated with specified key, or
null
if there was no mapping for key. Anull
return can also indicate that the HashMap previously associatednull
with the specified key.
-
remove
Description copied from class:LongHashMap
Removes the mapping for this key from this map if present.- Overrides:
remove
in classLongHashMap<V>
- Parameters:
key
- key whose mapping is to be removed from the map.- Returns:
- previous value associated with specified key, or
null
if there was no mapping for key. Anull
return can also indicate that the map previously associatednull
with the specified key.
-
clear
public void clear()Description copied from class:LongHashMap
Removes all mappings from this map.- Overrides:
clear
in classLongHashMap<V>
-
copyValues
- Overrides:
copyValues
in classLongHashMap<V>
-
lastValue
-
firstValue
-
getInternalValuesTable
-
test_order
-
main
-