Package com.jme3.util
Class IntMap<T>
java.lang.Object
com.jme3.util.IntMap<T>
- All Implemented Interfaces:
JmeCloneable
,Cloneable
,Iterable<IntMap.Entry<T>>
public final class IntMap<T>
extends Object
implements Iterable<IntMap.Entry<T>>, Cloneable, JmeCloneable
Similar to a
Map
except that ints are used as keys.
Taken from http://code.google.com/p/skorpios/-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
void
cloneFields
(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.boolean
containsKey
(int key) boolean
containsValue
(Object value) get
(int key) iterator()
jmeClone()
Called internally by com.jme3.util.clone.Cloner.remove
(int key) int
size()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IntMap
public IntMap() -
IntMap
public IntMap(int initialCapacity) -
IntMap
public IntMap(int initialCapacity, float loadFactor)
-
-
Method Details
-
clone
-
jmeClone
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
jmeClone
in interfaceJmeCloneable
- Returns:
- a new instance
-
cloneFields
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
cloneFields
in interfaceJmeCloneable
- Parameters:
cloner
- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.original
- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
-
containsValue
-
containsKey
public boolean containsKey(int key) -
get
-
put
-
remove
-
size
public int size() -
clear
public void clear() -
iterator
-