- All Implemented Interfaces:
Iterable<Long>,Collection<Long>,Set<Long>,Accountable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long(package private) final int(package private) final boolean(package private) final intprivate static final long(package private) final int(package private) final long[]Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResourcesMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
BASE_RAM_BYTES
private static final long BASE_RAM_BYTES -
MISSING
private static final long MISSING- See Also:
-
table
final long[] table -
mask
final int mask -
hasMissingValue
final boolean hasMissingValue -
size
final int size -
hashCode
final int hashCode
-
-
Constructor Details
-
LongHashSet
LongHashSet(long[] values)
-
-
Method Details
-
add
private boolean add(long l) -
contains
boolean contains(long l) -
size
public int size()- Specified by:
sizein interfaceCollection<Long>- Specified by:
sizein interfaceSet<Long>- Specified by:
sizein classAbstractCollection<Long>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Long>- Specified by:
hashCodein interfaceSet<Long>- Overrides:
hashCodein classAbstractSet<Long>
-
equals
- Specified by:
equalsin interfaceCollection<Long>- Specified by:
equalsin interfaceSet<Long>- Overrides:
equalsin classAbstractSet<Long>
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
contains
- Specified by:
containsin interfaceCollection<Long>- Specified by:
containsin interfaceSet<Long>- Overrides:
containsin classAbstractCollection<Long>
-
iterator
-