Contents
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 -
Method Summary
Modifier and TypeMethodDescriptionfirst()voidpushInto(Collection<K> c) This method pushes the data from this set into aCollectionwithout 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, trimMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectSet
equalsMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toStringMethods inherited from class AbstractCollection
containsAll, removeAll, retainAll, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
HObjectOpenHashSet
public HObjectOpenHashSet()
-
-
Method Details
-
first
- Returns:
- the first element in the set or
nullif non exist.
-
pushInto
This method pushes the data from this set into aCollectionwithout causing any allocation from iterators or toArray, etc. This can be used as a replacement forCollection.addAll(Collection)which causes allocations in the majority of implementations.- Parameters:
c- the collection to add the data to
-