@Override
    @SuppressWarnings("unchecked")
    public IntMap<T> clone(){
        try {
            IntMap<T> clone = (IntMap<T>) super.clone();
            Entry[] newTable = new Entry[table.length];
            for (int i = table.length - 1; i >= 0; i--){
                if (table[i] != null)
                    newTable[i] = table[i].clone();
            }
            clone.table = newTable;
            return clone;
        } catch (CloneNotSupportedException ex){
        }
        return null;
    }
Similar to a {@link Map} except that ints are used as keys.

Taken from <a href="http://code.google.com/p/skorpios/">http://code.google.com/p/skorpios/</a>

@author Nate
jme3-core/src/main/java/com/jme3/util/IntMap.java