Class IntHashMap<V>

java.lang.Object
org.jruby.util.collections.IntHashMap<V>
Direct Known Subclasses:
IntHashMap.NullMap

public class IntHashMap<V> extends Object
  • Field Details

    • table

      private IntHashMap.Entry<V>[] table
    • count

      private int count
    • keySet

      transient volatile Set<Integer> keySet
    • values

      transient volatile Collection<V> values
    • threshold

      private int threshold
    • loadFactor

      private final float loadFactor
    • entrySet

      private transient Set<IntHashMap.Entry<V>> entrySet
  • Constructor Details

    • IntHashMap

      public IntHashMap()
    • IntHashMap

      public IntHashMap(int initialCapacity)
    • IntHashMap

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

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • contains

      public boolean contains(Object value)
    • containsValue

      public boolean containsValue(Object value)
    • containsKey

      public boolean containsKey(int key)
    • get

      public V get(int key)
    • rehash

      protected void rehash()
    • getEntry

      IntHashMap.Entry<V> getEntry(int key)
    • put

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

      public V remove(int key)
    • clear

      public void clear()
    • newKeyIterator

      Iterator<Integer> newKeyIterator()
    • newValueIterator

      Iterator<V> newValueIterator()
    • newEntryIterator

      Iterator<IntHashMap.Entry<V>> newEntryIterator()
    • keySet

      public Set<Integer> keySet()
    • values

      public Collection<V> values()
    • entrySet

      public Set<IntHashMap.Entry<V>> entrySet()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • nullMap

      public static <U> IntHashMap<U> nullMap()