public final class LongHashSet extends AbstractLongSet implements org.eclipse.collections.api.set.primitive.MutableLongSet, Externalizable
| Constructor and Description |
|---|
LongHashSet() |
LongHashSet(int initialCapacity) |
LongHashSet(long... elements) |
LongHashSet(LongHashSet set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long element) |
boolean |
addAll(long... source) |
boolean |
addAll(org.eclipse.collections.api.LongIterable source) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.set.primitive.MutableLongSet |
asSynchronized() |
org.eclipse.collections.api.set.primitive.MutableLongSet |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.set.MutableSet<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(long value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
org.eclipse.collections.api.set.primitive.LongSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function) |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
long |
max() |
long |
min() |
static LongHashSet |
newSet(org.eclipse.collections.api.LongIterable source) |
static LongHashSet |
newSetWith(long... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.set.primitive.MutableLongSet |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
remove(long value) |
boolean |
removeAll(long... source) |
boolean |
removeAll(org.eclipse.collections.api.LongIterable source) |
boolean |
retainAll(long... source) |
boolean |
retainAll(org.eclipse.collections.api.LongIterable source) |
LongHashSet |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
int |
size() |
long |
sum() |
long[] |
toArray() |
org.eclipse.collections.api.set.primitive.ImmutableLongSet |
toImmutable() |
LongHashSet |
with(long element) |
LongHashSet |
withAll(org.eclipse.collections.api.LongIterable elements) |
LongHashSet |
without(long element) |
LongHashSet |
withoutAll(org.eclipse.collections.api.LongIterable elements) |
void |
writeExternal(ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic LongHashSet()
public LongHashSet(int initialCapacity)
public LongHashSet(long... elements)
public LongHashSet(LongHashSet set)
public static LongHashSet newSet(org.eclipse.collections.api.LongIterable source)
public static LongHashSet newSetWith(long... source)
public int hashCode()
hashCode in interface org.eclipse.collections.api.set.primitive.LongSethashCode in class AbstractLongSetpublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean add(long element)
add in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean addAll(long... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean addAll(org.eclipse.collections.api.LongIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean remove(long value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean removeAll(org.eclipse.collections.api.LongIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean removeAll(long... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean retainAll(org.eclipse.collections.api.LongIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean retainAll(long... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic LongHashSet with(long element)
with in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwith in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic LongHashSet without(long element)
without in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithout in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic LongHashSet withAll(org.eclipse.collections.api.LongIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithAll in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic LongHashSet withoutAll(org.eclipse.collections.api.LongIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic org.eclipse.collections.api.set.primitive.MutableLongSet asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic org.eclipse.collections.api.set.primitive.MutableLongSet asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic org.eclipse.collections.api.set.primitive.ImmutableLongSet toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface org.eclipse.collections.api.set.primitive.LongSettoImmutable in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionlongIterator in interface org.eclipse.collections.api.LongIterablepublic long[] toArray()
toArray in interface org.eclipse.collections.api.LongIterablepublic boolean contains(long value)
contains in interface org.eclipse.collections.api.LongIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEach in interface org.eclipse.collections.api.LongIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
each in interface org.eclipse.collections.api.LongIterablepublic LongHashSet select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionselect in interface org.eclipse.collections.api.LongIterableselect in interface org.eclipse.collections.api.set.primitive.LongSetselect in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic org.eclipse.collections.api.set.primitive.MutableLongSet reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionreject in interface org.eclipse.collections.api.LongIterablereject in interface org.eclipse.collections.api.set.primitive.LongSetreject in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic <V> org.eclipse.collections.api.set.MutableSet<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectioncollect in interface org.eclipse.collections.api.LongIterablecollect in interface org.eclipse.collections.api.set.primitive.LongSetcollect in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic long detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone)
detectIfNone in interface org.eclipse.collections.api.LongIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface org.eclipse.collections.api.LongIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.LongIterablepublic long sum()
sum in interface org.eclipse.collections.api.LongIterablepublic long max()
max in interface org.eclipse.collections.api.LongIterablepublic long min()
min in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.set.primitive.LongSet freeze()
freeze in interface org.eclipse.collections.api.set.primitive.LongSetfreeze in interface org.eclipse.collections.api.set.primitive.MutableLongSetpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.LongIterablepublic void compact()
Copyright © 2004–2018. All rights reserved.