Package oracle.spatial.network.lod
Class LongLinkedHashMap<V>
- java.lang.Object
-
- oracle.spatial.network.lod.LongHashMap<V>
-
- oracle.spatial.network.lod.LongLinkedHashMap<V>
-
public class LongLinkedHashMap<V> extends LongHashMap<V>
This is a bare-bones, application specific, optimized ordered hash map implementation.- Since:
- release specific (what release of product did this appear in)
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.lod.LongHashMap
count, loadFactor, table, threshold
-
-
Constructor Summary
Constructors Constructor Description LongLinkedHashMap()
Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.75).LongLinkedHashMap(int initialCapacity)
Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.75).LongLinkedHashMap(int initialCapacity, float loadFactor)
Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Removes all of the mappings from this map.protected void
init()
Called by superclass constructors and pseudoconstructors (clone, readObject) before any entries are inserted into the map.long[]
keys()
Returns true if this map maps one or more keys to the specified value.long[]
keysReverse()
java.util.Iterator<V>
valuesIterator()
java.util.Iterator<V>
valuesReverseIterator()
-
Methods inherited from class oracle.spatial.network.lod.LongHashMap
clone, containsKey, get, getRehashTime, getStatistics, isEmpty, put, remove, size
-
-
-
-
Constructor Detail
-
LongLinkedHashMap
public LongLinkedHashMap(int initialCapacity, float loadFactor)
Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.- Parameters:
initialCapacity
- the initial capacityloadFactor
- the load factor- Throws:
java.lang.IllegalArgumentException
- if the initial capacity is negative or the load factor is nonpositive
-
LongLinkedHashMap
public LongLinkedHashMap(int initialCapacity)
Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.75).- Parameters:
initialCapacity
- the initial capacity- Throws:
java.lang.IllegalArgumentException
- if the initial capacity is negative
-
LongLinkedHashMap
public LongLinkedHashMap()
Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.75).
-
-
Method Detail
-
init
protected void init()
Called by superclass constructors and pseudoconstructors (clone, readObject) before any entries are inserted into the map. Initializes the chain.- Overrides:
init
in classLongHashMap<V>
-
keys
public long[] keys()
Returns true if this map maps one or more keys to the specified value.- Overrides:
keys
in classLongHashMap<V>
- Parameters:
value
- value whose presence in this map is to be tested- Returns:
- true if this map maps one or more keys to the specified value
-
keysReverse
public long[] keysReverse()
-
valuesIterator
public java.util.Iterator<V> valuesIterator()
- Overrides:
valuesIterator
in classLongHashMap<V>
-
valuesReverseIterator
public java.util.Iterator<V> valuesReverseIterator()
-
clear
public void clear()
Removes all of the mappings from this map. The map will be empty after this call returns.- Overrides:
clear
in classLongHashMap<V>
-
-