@NotThreadSafe public final class UnmodifiableIntSet extends AbstractUnmodifiableIntCollection implements com.gs.collections.api.set.primitive.MutableIntSet
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.set.primitive.MutableIntSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableIntSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.IntSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static UnmodifiableIntSet |
of(com.gs.collections.api.set.primitive.MutableIntSet set)
This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.
|
com.gs.collections.api.set.primitive.MutableIntSet |
reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
com.gs.collections.api.set.primitive.MutableIntSet |
select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableIntSet |
toImmutable()
Returns an immutable copy of this set.
|
UnmodifiableIntSet |
with(int element) |
UnmodifiableIntSet |
withAll(com.gs.collections.api.IntIterable elements) |
UnmodifiableIntSet |
without(int element) |
UnmodifiableIntSet |
withoutAll(com.gs.collections.api.IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, getIntCollection, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static UnmodifiableIntSet of(com.gs.collections.api.set.primitive.MutableIntSet set)
public UnmodifiableIntSet with(int element)
with in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwith in interface com.gs.collections.api.set.primitive.MutableIntSetwith in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet without(int element)
without in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithout in interface com.gs.collections.api.set.primitive.MutableIntSetwithout in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet withAll(com.gs.collections.api.IntIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableIntSetwithAll in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet withoutAll(com.gs.collections.api.IntIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableIntSetwithoutAll in class AbstractUnmodifiableIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableIntCollectionselect in interface com.gs.collections.api.IntIterableselect in interface com.gs.collections.api.set.primitive.IntSetselect in interface com.gs.collections.api.set.primitive.MutableIntSetselect in class AbstractUnmodifiableIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableIntCollectionreject in interface com.gs.collections.api.IntIterablereject in interface com.gs.collections.api.set.primitive.IntSetreject in interface com.gs.collections.api.set.primitive.MutableIntSetreject in class AbstractUnmodifiableIntCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableIntCollectioncollect in interface com.gs.collections.api.IntIterablecollect in interface com.gs.collections.api.set.primitive.IntSetcollect in interface com.gs.collections.api.set.primitive.MutableIntSetcollect in class AbstractUnmodifiableIntCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.IntSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.IntSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.IntSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.IntSethashCode in class java.lang.Objectpublic com.gs.collections.api.set.primitive.MutableIntSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableIntCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableIntSetasUnmodifiable in class AbstractUnmodifiableIntCollectionpublic com.gs.collections.api.set.primitive.MutableIntSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableIntCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableIntSetasSynchronized in class AbstractUnmodifiableIntCollectionpublic com.gs.collections.api.set.primitive.IntSet freeze()
com.gs.collections.api.set.primitive.MutableIntSetfreeze in interface com.gs.collections.api.set.primitive.IntSetfreeze in interface com.gs.collections.api.set.primitive.MutableIntSetpublic com.gs.collections.api.set.primitive.ImmutableIntSet toImmutable()
com.gs.collections.api.set.primitive.MutableIntSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableIntCollectiontoImmutable in interface com.gs.collections.api.set.primitive.IntSettoImmutable in interface com.gs.collections.api.set.primitive.MutableIntSettoImmutable in class AbstractUnmodifiableIntCollection