Class LongHashSet.Synchronized

java.lang.Object
org.greenrobot.essentials.collections.LongHashSet
org.greenrobot.essentials.collections.LongHashSet.Synchronized
Enclosing class:
LongHashSet

protected static class LongHashSet.Synchronized extends LongHashSet
  • Constructor Details

    • Synchronized

      public Synchronized(int capacity)
  • Method Details

    • contains

      public boolean contains(long key)
      Overrides:
      contains in class LongHashSet
    • add

      public boolean add(long key)
      Description copied from class: LongHashSet
      Adds the given value to the set.
      Overrides:
      add in class LongHashSet
      Returns:
      true if the value was actually new
    • remove

      public boolean remove(long key)
      Description copied from class: LongHashSet
      Removes the given value to the set.
      Overrides:
      remove in class LongHashSet
      Returns:
      true if the value was actually removed
    • keys

      public long[] keys()
      Description copied from class: LongHashSet
      Returns all keys in no particular order.
      Overrides:
      keys in class LongHashSet
    • clear

      public void clear()
      Overrides:
      clear in class LongHashSet
    • setCapacity

      public void setCapacity(int newCapacity)
      Overrides:
      setCapacity in class LongHashSet
    • reserveRoom

      public void reserveRoom(int entryCount)
      Description copied from class: LongHashSet
      Target load: 0,6
      Overrides:
      reserveRoom in class LongHashSet