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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableIntSetasSynchronized()MutableIntSetasUnmodifiable()MutableSet<Integer>boxed()LazyIterable<IntIntPair>cartesianProduct(IntSet set)<V> MutableSet<V>collect(IntToObjectFunction<? extends V> function)booleanequals(Object otherSet)IntSetfreeze()inthashCode()MutableIntSetnewEmpty()static UnmodifiableIntSetof(MutableIntSet set)This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.MutableIntSetreject(IntPredicate predicate)MutableIntSetselect(IntPredicate predicate)ImmutableIntSettoImmutable()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, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, 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, toString
-
Methods 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, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.IntSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableIntSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableIntSet
public UnmodifiableIntSet(MutableIntSet set)
-
-
Method Detail
-
of
public static UnmodifiableIntSet of(MutableIntSet set)
This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.
-
with
public UnmodifiableIntSet with(int element)
- Specified by:
within interfaceMutableIntCollection- Specified by:
within interfaceMutableIntSet- Overrides:
within classAbstractUnmodifiableIntCollection
-
boxed
public MutableSet<Integer> boxed()
- Specified by:
boxedin interfaceMutableIntSet
-
without
public UnmodifiableIntSet without(int element)
- Specified by:
withoutin interfaceMutableIntCollection- Specified by:
withoutin interfaceMutableIntSet- Overrides:
withoutin classAbstractUnmodifiableIntCollection
-
withAll
public UnmodifiableIntSet withAll(IntIterable elements)
- Specified by:
withAllin interfaceMutableIntCollection- Specified by:
withAllin interfaceMutableIntSet- Overrides:
withAllin classAbstractUnmodifiableIntCollection
-
withoutAll
public UnmodifiableIntSet withoutAll(IntIterable elements)
- Specified by:
withoutAllin interfaceMutableIntCollection- Specified by:
withoutAllin interfaceMutableIntSet- Overrides:
withoutAllin classAbstractUnmodifiableIntCollection
-
select
public MutableIntSet select(IntPredicate predicate)
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntSet- Specified by:
selectin interfaceMutableIntCollection- Specified by:
selectin interfaceMutableIntSet- Overrides:
selectin classAbstractUnmodifiableIntCollection
-
reject
public MutableIntSet reject(IntPredicate predicate)
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntSet- Specified by:
rejectin interfaceMutableIntCollection- Specified by:
rejectin interfaceMutableIntSet- Overrides:
rejectin classAbstractUnmodifiableIntCollection
-
collect
public <V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntSet- Specified by:
collectin interfaceMutableIntCollection- Specified by:
collectin interfaceMutableIntSet- Overrides:
collectin classAbstractUnmodifiableIntCollection
-
cartesianProduct
public LazyIterable<IntIntPair> cartesianProduct(IntSet set)
- Specified by:
cartesianProductin interfaceIntSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableIntSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableIntCollection- Specified by:
asUnmodifiablein interfaceMutableIntSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableIntCollection
-
asSynchronized
public MutableIntSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableIntCollection- Specified by:
asSynchronizedin interfaceMutableIntSet- Overrides:
asSynchronizedin classAbstractUnmodifiableIntCollection
-
freeze
public IntSet freeze()
- Specified by:
freezein interfaceIntSet- Specified by:
freezein interfaceMutableIntSet
-
toImmutable
public ImmutableIntSet toImmutable()
- Specified by:
toImmutablein interfaceIntSet- Specified by:
toImmutablein interfaceMutableIntCollection- Specified by:
toImmutablein interfaceMutableIntSet- Overrides:
toImmutablein classAbstractUnmodifiableIntCollection
-
newEmpty
public MutableIntSet newEmpty()
- Specified by:
newEmptyin interfaceMutableIntCollection- Specified by:
newEmptyin interfaceMutableIntSet- Since:
- 9.2.
-
-