Serializable, MutableIntCollection, IntIterable, PrimitiveIterable, IntSet, MutableIntSetpublic class UnmodifiableIntSet extends AbstractUnmodifiableIntCollection implements MutableIntSet
| Constructor | Description |
|---|---|
UnmodifiableIntSet(MutableIntSet set) |
| Modifier and Type | Method | Description |
|---|---|---|
MutableIntSet |
asSynchronized() |
|
MutableIntSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
equals(Object otherSet) |
Follows the same general contract as
Set.equals(Object). |
IntSet |
freeze() |
Returns a frozen copy of this set.
|
int |
hashCode() |
Follows the same general contract as
Set.hashCode(). |
MutableIntSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableIntSet |
of(MutableIntSet set) |
This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.
|
MutableIntSet |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntSet |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
ImmutableIntSet |
toImmutable() |
Returns an immutable copy of this set.
|
UnmodifiableIntSet |
with(int element) |
|
UnmodifiableIntSet |
withAll(IntIterable elements) |
|
UnmodifiableIntSet |
without(int element) |
|
UnmodifiableIntSet |
withoutAll(IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableIntSet(MutableIntSet set)
public static UnmodifiableIntSet of(MutableIntSet set)
public UnmodifiableIntSet with(int element)
with in interface MutableIntCollectionwith in interface MutableIntSetwith in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet without(int element)
without in interface MutableIntCollectionwithout in interface MutableIntSetwithout in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet withAll(IntIterable elements)
withAll in interface MutableIntCollectionwithAll in interface MutableIntSetwithAll in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntSet withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionwithoutAll in interface MutableIntSetwithoutAll in class AbstractUnmodifiableIntCollectionpublic MutableIntSet select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntSetselect in interface MutableIntCollectionselect in interface MutableIntSetselect in class AbstractUnmodifiableIntCollectionpublic MutableIntSet reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntSetreject in interface MutableIntCollectionreject in interface MutableIntSetreject in class AbstractUnmodifiableIntCollectionpublic <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntSetcollect in interface MutableIntCollectioncollect in interface MutableIntSetcollect in class AbstractUnmodifiableIntCollectionpublic boolean equals(Object otherSet)
IntSetSet.equals(Object).public int hashCode()
IntSetSet.hashCode().public MutableIntSet asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionasUnmodifiable in interface MutableIntSetasUnmodifiable in class AbstractUnmodifiableIntCollectionpublic MutableIntSet asSynchronized()
asSynchronized in interface MutableIntCollectionasSynchronized in interface MutableIntSetasSynchronized in class AbstractUnmodifiableIntCollectionpublic IntSet freeze()
MutableIntSetfreeze in interface IntSetfreeze in interface MutableIntSetpublic ImmutableIntSet toImmutable()
MutableIntSettoImmutable in interface IntSettoImmutable in interface MutableIntCollectiontoImmutable in interface MutableIntSettoImmutable in class AbstractUnmodifiableIntCollectionpublic MutableIntSet newEmpty()
MutableIntSetnewEmpty in interface MutableIntCollectionnewEmpty in interface MutableIntSetCopyright © 2004–2019. All rights reserved.