Class AbstractUnmodifiableShortCollection
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection
- All Implemented Interfaces:
Serializable,MutableShortCollection,PrimitiveIterable,ShortIterable
- Direct Known Subclasses:
UnmodifiableShortBag,UnmodifiableShortCollection,UnmodifiableShortList,UnmodifiableShortSet
public abstract class AbstractUnmodifiableShortCollection
extends Object
implements MutableShortCollection, Serializable
This file was automatically generated from template file abstractUnmodifiablePrimitiveCollection.stg.
- Since:
- 3.1.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(short newItem) booleanaddAll(short... source) booleanaddAll(ShortIterable source) booleanallSatisfy(ShortPredicate predicate) booleananySatisfy(ShortPredicate 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(ShortToObjectFunction<? extends V> function) booleancontains(short value) booleancontainsAll(short... source) booleancontainsAll(ShortIterable source) booleancontainsAny(short... source) booleancontainsAny(ShortIterable source) booleancontainsNone(short... source) booleancontainsNone(ShortIterable source) intcount(ShortPredicate predicate) shortdetectIfNone(ShortPredicate predicate, short ifNone) voideach(ShortProcedure procedure) <T> TinjectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) shortmax()shortmaxIfEmpty(short defaultValue) doublemedian()shortmin()shortminIfEmpty(short defaultValue) booleannoneSatisfy(ShortPredicate predicate) booleannotEmpty()longreduce(LongShortToLongFunction accumulator) longreduceIfEmpty(LongShortToLongFunction accumulator, long defaultValue) reject(ShortPredicate predicate) booleanremove(short value) booleanremoveAll(short... source) booleanremoveAll(ShortIterable source) booleanremoveIf(ShortPredicate predicate) booleanretainAll(short... source) booleanretainAll(ShortIterable source) select(ShortPredicate predicate) intsize()longsum()short[]toArray()short[]toArray(short[] target) toBag()toList()toSet()short[]toString()with(short element) withAll(ShortIterable elements) without(short element) withoutAll(ShortIterable elements) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableShortCollection
newEmpty, tapMethods inherited from interface org.eclipse.collections.api.ShortIterable
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, toSortedListBy
-
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 interfaceMutableShortCollection
-
contains
public boolean contains(short value) - Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source) - Specified by:
containsAllin interfaceShortIterable
-
containsAll
- Specified by:
containsAllin interfaceShortIterable
-
containsAny
public boolean containsAny(short... source) - Specified by:
containsAnyin interfaceShortIterable
-
containsAny
- Specified by:
containsAnyin interfaceShortIterable
-
containsNone
public boolean containsNone(short... source) - Specified by:
containsNonein interfaceShortIterable
-
containsNone
- Specified by:
containsNonein interfaceShortIterable
-
add
public boolean add(short newItem) - Specified by:
addin interfaceMutableShortCollection
-
addAll
public boolean addAll(short... source) - Specified by:
addAllin interfaceMutableShortCollection
-
addAll
- Specified by:
addAllin interfaceMutableShortCollection
-
remove
public boolean remove(short value) - Specified by:
removein interfaceMutableShortCollection
-
removeIf
- Specified by:
removeIfin interfaceMutableShortCollection- Since:
- 9.1
-
removeAll
- Specified by:
removeAllin interfaceMutableShortCollection
-
removeAll
public boolean removeAll(short... source) - Specified by:
removeAllin interfaceMutableShortCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableShortCollection
-
retainAll
public boolean retainAll(short... source) - Specified by:
retainAllin interfaceMutableShortCollection
-
shortIterator
- Specified by:
shortIteratorin interfaceMutableShortCollection- Specified by:
shortIteratorin interfaceShortIterable
-
each
- Specified by:
eachin interfaceShortIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceShortIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceShortIterable
-
select
- Specified by:
selectin interfaceMutableShortCollection- Specified by:
selectin interfaceShortIterable
-
reject
- Specified by:
rejectin interfaceMutableShortCollection- Specified by:
rejectin interfaceShortIterable
-
collect
- Specified by:
collectin interfaceMutableShortCollection- Specified by:
collectin interfaceShortIterable
-
with
- Specified by:
within interfaceMutableShortCollection
-
without
- Specified by:
withoutin interfaceMutableShortCollection
-
withAll
- Specified by:
withAllin interfaceMutableShortCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableShortCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortCollection
-
toImmutable
- Specified by:
toImmutablein interfaceMutableShortCollection
-
asLazy
- Specified by:
asLazyin interfaceShortIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceShortIterable
-
sum
public long sum()- Specified by:
sumin interfaceShortIterable
-
max
public short max()- Specified by:
maxin interfaceShortIterable
-
min
public short min()- Specified by:
minin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue) - Specified by:
minIfEmptyin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue) - Specified by:
maxIfEmptyin interfaceShortIterable
-
average
public double average()- Specified by:
averagein interfaceShortIterable
-
median
public double median()- Specified by:
medianin interfaceShortIterable
-
toSortedList
- Specified by:
toSortedListin interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArrayin interfaceShortIterable
-
toArray
public short[] toArray()- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] target) - Specified by:
toArrayin interfaceShortIterable
-
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 interfaceShortIterable
-
toSet
- Specified by:
toSetin interfaceShortIterable
-
toBag
- Specified by:
toBagin interfaceShortIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceShortIterable
-
reduce
- Specified by:
reducein interfaceShortIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceShortIterable
-
chunk
- Specified by:
chunkin interfaceShortIterable
-