Class UnmodifiableIntSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection
org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableIntSet
- All Implemented Interfaces:
Serializable,MutableIntCollection,IntIterable,PrimitiveIterable,IntSet,MutableIntSet
public class UnmodifiableIntSet extends AbstractUnmodifiableIntCollection implements MutableIntSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntSet(MutableIntSet set) -
Method Summary
Modifier and Type Method Description MutableIntSetasSynchronized()MutableIntSetasUnmodifiable()<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.booleanequals(Object otherSet)Follows the same general contract asSet.equals(Object).IntSetfreeze()Returns a frozen copy of this set.inthashCode()Follows the same general contract asSet.hashCode().MutableIntSetnewEmpty()Creates a new empty mutable version of the same Set type.static UnmodifiableIntSetof(MutableIntSet set)This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.MutableIntSetreject(IntPredicate predicate)Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.MutableIntSetselect(IntPredicate predicate)Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.ImmutableIntSettoImmutable()Returns an immutable copy of this set.UnmodifiableIntSetwith(int element)UnmodifiableIntSetwithAll(IntIterable elements)UnmodifiableIntSetwithout(int element)UnmodifiableIntSetwithoutAll(IntIterable elements)Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection
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, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, 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, toArray, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
Method Details
-
of
This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet. -
with
- Specified by:
within interfaceMutableIntCollection- Specified by:
within interfaceMutableIntSet- Overrides:
within classAbstractUnmodifiableIntCollection
-
without
- Specified by:
withoutin interfaceMutableIntCollection- Specified by:
withoutin interfaceMutableIntSet- Overrides:
withoutin classAbstractUnmodifiableIntCollection
-
withAll
- Specified by:
withAllin interfaceMutableIntCollection- Specified by:
withAllin interfaceMutableIntSet- Overrides:
withAllin classAbstractUnmodifiableIntCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableIntCollection- Specified by:
withoutAllin interfaceMutableIntSet- Overrides:
withoutAllin classAbstractUnmodifiableIntCollection
-
select
Description copied from interface:IntIterableReturns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntSet- Specified by:
selectin interfaceMutableIntCollection- Specified by:
selectin interfaceMutableIntSet- Overrides:
selectin classAbstractUnmodifiableIntCollection
-
reject
Description copied from interface:IntIterableReturns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntSet- Specified by:
rejectin interfaceMutableIntCollection- Specified by:
rejectin interfaceMutableIntSet- Overrides:
rejectin classAbstractUnmodifiableIntCollection
-
collect
Description copied from interface:IntIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntSet- Specified by:
collectin interfaceMutableIntCollection- Specified by:
collectin interfaceMutableIntSet- Overrides:
collectin classAbstractUnmodifiableIntCollection
-
equals
Description copied from interface:IntSetFollows the same general contract asSet.equals(Object). -
hashCode
public int hashCode()Description copied from interface:IntSetFollows the same general contract asSet.hashCode(). -
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntCollection- Specified by:
asUnmodifiablein interfaceMutableIntSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableIntCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntCollection- Specified by:
asSynchronizedin interfaceMutableIntSet- Overrides:
asSynchronizedin classAbstractUnmodifiableIntCollection
-
freeze
Description copied from interface:MutableIntSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceIntSet- Specified by:
freezein interfaceMutableIntSet
-
toImmutable
Description copied from interface:MutableIntSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceIntSet- Specified by:
toImmutablein interfaceMutableIntCollection- Specified by:
toImmutablein interfaceMutableIntSet- Overrides:
toImmutablein classAbstractUnmodifiableIntCollection
-
newEmpty
Description copied from interface:MutableIntSetCreates a new empty mutable version of the same Set type.- Specified by:
newEmptyin interfaceMutableIntCollection- Specified by:
newEmptyin interfaceMutableIntSet- Since:
- 9.2.
-