public final class IntHashSet extends AbstractIntSet implements org.eclipse.collections.api.set.primitive.MutableIntSet, Externalizable
| Constructor and Description |
|---|
IntHashSet() |
IntHashSet(int... elements) |
IntHashSet(int initialCapacity) |
IntHashSet(IntHashSet set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int element) |
boolean |
addAll(int... source) |
boolean |
addAll(org.eclipse.collections.api.IntIterable source) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.set.primitive.MutableIntSet |
asSynchronized() |
org.eclipse.collections.api.set.primitive.MutableIntSet |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.set.MutableSet<V> |
collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? 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(int value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
org.eclipse.collections.api.set.primitive.IntSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
int |
max() |
int |
min() |
static IntHashSet |
newSet(org.eclipse.collections.api.IntIterable source) |
static IntHashSet |
newSetWith(int... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.set.primitive.MutableIntSet |
reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
remove(int value) |
boolean |
removeAll(int... source) |
boolean |
removeAll(org.eclipse.collections.api.IntIterable source) |
boolean |
retainAll(int... source) |
boolean |
retainAll(org.eclipse.collections.api.IntIterable source) |
IntHashSet |
select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
size() |
long |
sum() |
int[] |
toArray() |
org.eclipse.collections.api.set.primitive.ImmutableIntSet |
toImmutable() |
IntHashSet |
with(int element) |
IntHashSet |
withAll(org.eclipse.collections.api.IntIterable elements) |
IntHashSet |
without(int element) |
IntHashSet |
withoutAll(org.eclipse.collections.api.IntIterable 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 IntHashSet()
public IntHashSet(int initialCapacity)
public IntHashSet(int... elements)
public IntHashSet(IntHashSet set)
public static IntHashSet newSet(org.eclipse.collections.api.IntIterable source)
public static IntHashSet newSetWith(int... source)
public int hashCode()
hashCode in interface org.eclipse.collections.api.set.primitive.IntSethashCode in class AbstractIntSetpublic 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(int element)
add in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean addAll(int... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean addAll(org.eclipse.collections.api.IntIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean remove(int value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean removeAll(org.eclipse.collections.api.IntIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean removeAll(int... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean retainAll(org.eclipse.collections.api.IntIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean retainAll(int... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic IntHashSet with(int element)
with in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwith in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic IntHashSet without(int element)
without in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithout in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic IntHashSet withAll(org.eclipse.collections.api.IntIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithAll in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic IntHashSet withoutAll(org.eclipse.collections.api.IntIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithoutAll in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic org.eclipse.collections.api.set.primitive.MutableIntSet asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionasUnmodifiable in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic org.eclipse.collections.api.set.primitive.MutableIntSet asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionasSynchronized in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic org.eclipse.collections.api.set.primitive.ImmutableIntSet toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectiontoImmutable in interface org.eclipse.collections.api.set.primitive.IntSettoImmutable in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionintIterator in interface org.eclipse.collections.api.IntIterablepublic int[] toArray()
toArray in interface org.eclipse.collections.api.IntIterablepublic boolean contains(int value)
contains in interface org.eclipse.collections.api.IntIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEach in interface org.eclipse.collections.api.IntIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
each in interface org.eclipse.collections.api.IntIterablepublic IntHashSet select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionselect in interface org.eclipse.collections.api.IntIterableselect in interface org.eclipse.collections.api.set.primitive.IntSetselect in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic org.eclipse.collections.api.set.primitive.MutableIntSet reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionreject in interface org.eclipse.collections.api.IntIterablereject in interface org.eclipse.collections.api.set.primitive.IntSetreject in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic <V> org.eclipse.collections.api.set.MutableSet<V> collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectioncollect in interface org.eclipse.collections.api.IntIterablecollect in interface org.eclipse.collections.api.set.primitive.IntSetcollect in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic int detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone)
detectIfNone in interface org.eclipse.collections.api.IntIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
count in interface org.eclipse.collections.api.IntIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.IntIterablepublic long sum()
sum in interface org.eclipse.collections.api.IntIterablepublic int max()
max in interface org.eclipse.collections.api.IntIterablepublic int min()
min in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.set.primitive.IntSet freeze()
freeze in interface org.eclipse.collections.api.set.primitive.IntSetfreeze in interface org.eclipse.collections.api.set.primitive.MutableIntSetpublic 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.ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void compact()
Copyright © 2004–2018. All rights reserved.