Class IndexedHashMap<K,V>

java.lang.Object
org.kingdoms.utils.internal.IndexedHashMap<K,V>

public class IndexedHashMap<K,V> extends Object
  • Constructor Details

    • IndexedHashMap

      public IndexedHashMap(K[] sample)
  • Method Details

    • asArray

      public K[] asArray()
    • iterator

      public K[] iterator()
    • get

      public V get(K key)
    • at

      public K at(int i)
    • get

      public V get(K key, V def)
    • size

      public int size()
    • add

      public void add(K key, V val)
    • set

      public void set(K[] keys, Function<Integer,V> converter)
    • subList

      public <U> List<U> subList(int skip, int limit, Function<K,U> converter)
      Parameters:
      converter - Acts as a predicate as well. If returned null, doesn't add it to the list.
    • clear

      public void clear()