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:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableShortCollection
newEmpty, tap
-
Methods 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 Detail
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableShortCollection
-
contains
public boolean contains(short value)
- Specified by:
contains
in interfaceShortIterable
-
containsAll
public boolean containsAll(short... source)
- Specified by:
containsAll
in interfaceShortIterable
-
containsAll
public boolean containsAll(ShortIterable source)
- Specified by:
containsAll
in interfaceShortIterable
-
containsAny
public boolean containsAny(short... source)
- Specified by:
containsAny
in interfaceShortIterable
-
containsAny
public boolean containsAny(ShortIterable source)
- Specified by:
containsAny
in interfaceShortIterable
-
containsNone
public boolean containsNone(short... source)
- Specified by:
containsNone
in interfaceShortIterable
-
containsNone
public boolean containsNone(ShortIterable source)
- Specified by:
containsNone
in interfaceShortIterable
-
add
public boolean add(short newItem)
- Specified by:
add
in interfaceMutableShortCollection
-
addAll
public boolean addAll(short... source)
- Specified by:
addAll
in interfaceMutableShortCollection
-
addAll
public boolean addAll(ShortIterable source)
- Specified by:
addAll
in interfaceMutableShortCollection
-
remove
public boolean remove(short value)
- Specified by:
remove
in interfaceMutableShortCollection
-
removeIf
public boolean removeIf(ShortPredicate predicate)
- Specified by:
removeIf
in interfaceMutableShortCollection
- Since:
- 9.1
-
removeAll
public boolean removeAll(ShortIterable source)
- Specified by:
removeAll
in interfaceMutableShortCollection
-
removeAll
public boolean removeAll(short... source)
- Specified by:
removeAll
in interfaceMutableShortCollection
-
retainAll
public boolean retainAll(ShortIterable source)
- Specified by:
retainAll
in interfaceMutableShortCollection
-
retainAll
public boolean retainAll(short... source)
- Specified by:
retainAll
in interfaceMutableShortCollection
-
shortIterator
public MutableShortIterator shortIterator()
- Specified by:
shortIterator
in interfaceMutableShortCollection
- Specified by:
shortIterator
in interfaceShortIterable
-
each
public void each(ShortProcedure procedure)
- Specified by:
each
in interfaceShortIterable
- Since:
- 7.0.
-
count
public int count(ShortPredicate predicate)
- Specified by:
count
in interfaceShortIterable
-
anySatisfy
public boolean anySatisfy(ShortPredicate predicate)
- Specified by:
anySatisfy
in interfaceShortIterable
-
allSatisfy
public boolean allSatisfy(ShortPredicate predicate)
- Specified by:
allSatisfy
in interfaceShortIterable
-
noneSatisfy
public boolean noneSatisfy(ShortPredicate predicate)
- Specified by:
noneSatisfy
in interfaceShortIterable
-
select
public MutableShortCollection select(ShortPredicate predicate)
- Specified by:
select
in interfaceMutableShortCollection
- Specified by:
select
in interfaceShortIterable
-
reject
public MutableShortCollection reject(ShortPredicate predicate)
- Specified by:
reject
in interfaceMutableShortCollection
- Specified by:
reject
in interfaceShortIterable
-
collect
public <V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceMutableShortCollection
- Specified by:
collect
in interfaceShortIterable
-
with
public MutableShortCollection with(short element)
- Specified by:
with
in interfaceMutableShortCollection
-
without
public MutableShortCollection without(short element)
- Specified by:
without
in interfaceMutableShortCollection
-
withAll
public MutableShortCollection withAll(ShortIterable elements)
- Specified by:
withAll
in interfaceMutableShortCollection
-
withoutAll
public MutableShortCollection withoutAll(ShortIterable elements)
- Specified by:
withoutAll
in interfaceMutableShortCollection
-
asUnmodifiable
public MutableShortCollection asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableShortCollection
-
asSynchronized
public MutableShortCollection asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableShortCollection
-
toImmutable
public ImmutableShortCollection toImmutable()
- Specified by:
toImmutable
in interfaceMutableShortCollection
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazy
in interfaceShortIterable
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- Specified by:
detectIfNone
in interfaceShortIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceShortIterable
-
max
public short max()
- Specified by:
max
in interfaceShortIterable
-
min
public short min()
- Specified by:
min
in interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)
- Specified by:
minIfEmpty
in interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)
- Specified by:
maxIfEmpty
in interfaceShortIterable
-
average
public double average()
- Specified by:
average
in interfaceShortIterable
-
median
public double median()
- Specified by:
median
in interfaceShortIterable
-
toSortedList
public MutableShortList toSortedList()
- Specified by:
toSortedList
in interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArray
in interfaceShortIterable
-
toArray
public short[] toArray()
- Specified by:
toArray
in interfaceShortIterable
-
toArray
public short[] toArray(short[] target)
- Specified by:
toArray
in interfaceShortIterable
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
toList
public MutableShortList toList()
- Specified by:
toList
in interfaceShortIterable
-
toSet
public MutableShortSet toSet()
- Specified by:
toSet
in interfaceShortIterable
-
toBag
public MutableShortBag toBag()
- Specified by:
toBag
in interfaceShortIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceShortIterable
-
reduce
public long reduce(LongShortToLongFunction accumulator)
- Specified by:
reduce
in interfaceShortIterable
-
reduceIfEmpty
public long reduceIfEmpty(LongShortToLongFunction accumulator, long defaultValue)
- Specified by:
reduceIfEmpty
in interfaceShortIterable
-
chunk
public RichIterable<ShortIterable> chunk(int size)
- Specified by:
chunk
in interfaceShortIterable
-
-