Class LongMap<V>

java.lang.Object
zombie.entity.util.LongMap<V>
All Implemented Interfaces:
Iterable<LongMap.Entry<V>>

public class LongMap<V> extends Object implements Iterable<LongMap.Entry<V>>
  • Field Details

    • size

      public int size
  • Constructor Details

    • LongMap

      public LongMap()
    • LongMap

      public LongMap(int initialCapacity)
    • LongMap

      public LongMap(int initialCapacity, float loadFactor)
    • LongMap

      public LongMap(LongMap<? extends V> map)
  • Method Details

    • put

      public @Nullable V put(long key, @Nullable V value)
    • putAll

      public void putAll(LongMap<? extends V> map)
    • get

      public @Nullable V get(long key)
    • get

      public V get(long key, @Nullable V defaultValue)
    • remove

      public @Nullable V remove(long key)
    • notEmpty

      public boolean notEmpty()
    • isEmpty

      public boolean isEmpty()
    • shrink

      public void shrink(int maximumCapacity)
    • clear

      public void clear(int maximumCapacity)
    • clear

      public void clear()
    • containsValue

      public boolean containsValue(@Nullable Object value, boolean identity)
    • containsKey

      public boolean containsKey(long key)
    • findKey

      public long findKey(@Nullable Object value, boolean identity, long notFound)
    • ensureCapacity

      public void ensureCapacity(int additionalCapacity)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsIdentity

      public boolean equalsIdentity(@Nullable Object obj)
    • toString

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

      public Iterator<LongMap.Entry<V>> iterator()
      Specified by:
      iterator in interface Iterable<V>
    • entries

      public LongMap.Entries<V> entries()
    • values

      public LongMap.Values<V> values()
    • keys

      public LongMap.Keys<V> keys()