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/
  • Constructor Details

    • IntMap

      public IntMap()
    • IntMap

      public IntMap(int initialCapacity)
    • IntMap

      public IntMap(int initialCapacity, float loadFactor)
  • Method Details

    • clone

      public IntMap<T> clone()
      Overrides:
      clone in class Object
    • jmeClone

      public Object jmeClone()
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      jmeClone in interface JmeCloneable
      Returns:
      a new instance
    • cloneFields

      public void cloneFields(Cloner cloner, Object original)
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      cloneFields in interface JmeCloneable
      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

      public boolean containsValue(Object value)
    • containsKey

      public boolean containsKey(int key)
    • get

      public T get(int key)
    • put

      public T put(int key, T value)
    • remove

      public T remove(int key)
    • size

      public int size()
    • clear

      public void clear()
    • iterator

      public Iterator<IntMap.Entry<T>> iterator()
      Specified by:
      iterator in interface Iterable<T>