Modifier and Type | Field and Description |
---|---|
static int |
MAX_CAPACITY
Maximum supported capacity
|
Constructor and Description |
---|
LongHashSet(int capacity,
long missingValue) |
LongHashSet(long[] items,
long missingValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(long value)
Primitive specialised overload of {this#add(Long)}
|
boolean |
add(Long value) |
boolean |
addAll(Collection<? extends Long> coll) |
void |
clear() |
boolean |
contains(long value) |
boolean |
contains(Object value) |
boolean |
containsAll(Collection<?> coll) |
boolean |
containsAll(LongHashSet other)
LongHashSet specialised variant of {this#containsAll(Collection)}.
|
void |
copy(LongHashSet obj) |
LongHashSet |
difference(LongHashSet collection)
Fast Path set difference for comparison with another LongHashSet.
|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isEmpty() |
LongIterator |
iterator() |
boolean |
remove(long value)
An long specialised version of {this#remove(Object)}.
|
boolean |
remove(Object value) |
boolean |
removeAll(Collection<?> coll) |
boolean |
retainAll(Collection<?> coll) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] into) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public static final int MAX_CAPACITY
public LongHashSet(int capacity, long missingValue)
public LongHashSet(long[] items, long missingValue)
public boolean add(Long value)
public boolean add(long value)
value
- the value to addpublic boolean remove(Object value)
public boolean remove(long value)
value
- the value to removepublic boolean contains(Object value)
public boolean contains(long value)
public int size()
public boolean isEmpty()
public void clear()
public boolean addAll(Collection<? extends Long> coll)
public boolean containsAll(Collection<?> coll)
containsAll
in interface Collection<Long>
containsAll
in interface Set<Long>
public boolean containsAll(LongHashSet other)
other
- the long hashset to compare against.public LongHashSet difference(LongHashSet collection)
collection
- the other set to subtractpublic boolean removeAll(Collection<?> coll)
public LongIterator iterator()
public void copy(LongHashSet obj)
public Object[] toArray()
public <T> T[] toArray(T[] into)
public boolean equals(Object other)
public int hashCode()
public boolean retainAll(Collection<?> coll)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.