Class HObjectOpenHashSet<K>

java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectSet<K>
it.unimi.dsi.fastutil.objects.ObjectOpenHashSet<K>
com.hypixel.hytale.common.fastutil.HObjectOpenHashSet<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Hash, it.unimi.dsi.fastutil.objects.ObjectCollection<K>, it.unimi.dsi.fastutil.objects.ObjectIterable<K>, it.unimi.dsi.fastutil.objects.ObjectSet<K>, Serializable, Cloneable, Iterable<K>, Collection<K>, Set<K>

public class HObjectOpenHashSet<K> extends it.unimi.dsi.fastutil.objects.ObjectOpenHashSet<K>
Since:
2021/02/12
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash

    it.unimi.dsi.fastutil.Hash.Strategy<K>
  • Field Summary

    Fields inherited from interface it.unimi.dsi.fastutil.Hash

    DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    This method pushes the data from this set into a Collection without causing any allocation from iterators or toArray, etc.

    Methods inherited from class it.unimi.dsi.fastutil.objects.ObjectOpenHashSet

    add, addAll, addOrGet, clear, clone, contains, ensureCapacity, forEach, get, hashCode, isEmpty, iterator, of, of, of, of, of, remove, size, spliterator, toSet, toSetWithExpectedSize, trim, trim

    Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectSet

    equals

    Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection

    toString

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface Set

    containsAll, removeAll, retainAll, toArray, toArray
  • Constructor Details

    • HObjectOpenHashSet

      public HObjectOpenHashSet()
  • Method Details

    • first

      @Nullable public K first()
      Returns:
      the first element in the set or null if non exist.
    • pushInto

      public void pushInto(@Nonnull Collection<K> c)
      This method pushes the data from this set into a Collection without causing any allocation from iterators or toArray, etc. This can be used as a replacement for Collection.addAll(Collection) which causes allocations in the majority of implementations.
      Parameters:
      c - the collection to add the data to