Class AbstractUnmodifiableIntCollection
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection
- All Implemented Interfaces:
Serializable,MutableIntCollection,IntIterable,PrimitiveIterable
- Direct Known Subclasses:
UnmodifiableIntBag,UnmodifiableIntCollection,UnmodifiableIntList,UnmodifiableIntSet
public abstract class AbstractUnmodifiableIntCollection
extends Object
implements MutableIntCollection, Serializable
This file was automatically generated from template file abstractUnmodifiablePrimitiveCollection.stg.
- Since:
- 3.1.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(int newItem) booleanaddAll(int... source) booleanaddAll(IntIterable source) booleanallSatisfy(IntPredicate predicate) booleananySatisfy(IntPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableCollection<V>collect(IntToObjectFunction<? extends V> function) booleancontains(int value) booleancontainsAll(int... source) booleancontainsAll(IntIterable source) booleancontainsAny(int... source) booleancontainsAny(IntIterable source) booleancontainsNone(int... source) booleancontainsNone(IntIterable source) intcount(IntPredicate predicate) intdetectIfNone(IntPredicate predicate, int ifNone) voideach(IntProcedure procedure) <T> TinjectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) intmax()intmaxIfEmpty(int defaultValue) doublemedian()intmin()intminIfEmpty(int defaultValue) booleannoneSatisfy(IntPredicate predicate) booleannotEmpty()longreduce(LongIntToLongFunction accumulator) longreduceIfEmpty(LongIntToLongFunction accumulator, long defaultValue) reject(IntPredicate predicate) booleanremove(int value) booleanremoveAll(int... source) booleanremoveAll(IntIterable source) booleanremoveIf(IntPredicate predicate) booleanretainAll(int... source) booleanretainAll(IntIterable source) select(IntPredicate predicate) intsize()longsum()int[]toArray()int[]toArray(int[] target) toBag()toList()toSet()int[]toString()with(int element) withAll(IntIterable elements) without(int element) withoutAll(IntIterable elements) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.IntIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
newEmpty, tap
-
Method Details
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableIntCollection
-
contains
public boolean contains(int value) - Specified by:
containsin interfaceIntIterable
-
containsAll
public boolean containsAll(int... source) - Specified by:
containsAllin interfaceIntIterable
-
containsAll
- Specified by:
containsAllin interfaceIntIterable
-
containsAny
public boolean containsAny(int... source) - Specified by:
containsAnyin interfaceIntIterable
-
containsAny
- Specified by:
containsAnyin interfaceIntIterable
-
containsNone
public boolean containsNone(int... source) - Specified by:
containsNonein interfaceIntIterable
-
containsNone
- Specified by:
containsNonein interfaceIntIterable
-
add
public boolean add(int newItem) - Specified by:
addin interfaceMutableIntCollection
-
addAll
public boolean addAll(int... source) - Specified by:
addAllin interfaceMutableIntCollection
-
addAll
- Specified by:
addAllin interfaceMutableIntCollection
-
remove
public boolean remove(int value) - Specified by:
removein interfaceMutableIntCollection
-
removeIf
- Specified by:
removeIfin interfaceMutableIntCollection- Since:
- 9.1
-
removeAll
- Specified by:
removeAllin interfaceMutableIntCollection
-
removeAll
public boolean removeAll(int... source) - Specified by:
removeAllin interfaceMutableIntCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableIntCollection
-
retainAll
public boolean retainAll(int... source) - Specified by:
retainAllin interfaceMutableIntCollection
-
intIterator
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntCollection
-
each
- Specified by:
eachin interfaceIntIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceIntIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceIntIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceIntIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceIntIterable
-
select
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceMutableIntCollection
-
reject
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceMutableIntCollection
-
collect
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceMutableIntCollection
-
with
- Specified by:
within interfaceMutableIntCollection
-
without
- Specified by:
withoutin interfaceMutableIntCollection
-
withAll
- Specified by:
withAllin interfaceMutableIntCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableIntCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntCollection
-
toImmutable
- Specified by:
toImmutablein interfaceMutableIntCollection
-
asLazy
- Specified by:
asLazyin interfaceIntIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceIntIterable
-
sum
public long sum()- Specified by:
sumin interfaceIntIterable
-
max
public int max()- Specified by:
maxin interfaceIntIterable
-
min
public int min()- Specified by:
minin interfaceIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue) - Specified by:
minIfEmptyin interfaceIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue) - Specified by:
maxIfEmptyin interfaceIntIterable
-
average
public double average()- Specified by:
averagein interfaceIntIterable
-
median
public double median()- Specified by:
medianin interfaceIntIterable
-
toSortedList
- Specified by:
toSortedListin interfaceIntIterable
-
toSortedArray
public int[] toSortedArray()- Specified by:
toSortedArrayin interfaceIntIterable
-
toArray
public int[] toArray()- Specified by:
toArrayin interfaceIntIterable
-
toArray
public int[] toArray(int[] target) - Specified by:
toArrayin interfaceIntIterable
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
- Specified by:
toListin interfaceIntIterable
-
toSet
- Specified by:
toSetin interfaceIntIterable
-
toBag
- Specified by:
toBagin interfaceIntIterable
-
injectInto
- Specified by:
injectIntoin interfaceIntIterable
-
reduce
- Specified by:
reducein interfaceIntIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceIntIterable
-
chunk
- Specified by:
chunkin interfaceIntIterable
-