Class AbstractSynchronizedShortCollection
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedShortCollection
-
- All Implemented Interfaces:
Serializable,MutableShortCollection,PrimitiveIterable,ShortIterable
- Direct Known Subclasses:
SynchronizedShortBag,SynchronizedShortCollection,SynchronizedShortList,SynchronizedShortSet
public abstract class AbstractSynchronizedShortCollection extends Object implements MutableShortCollection, Serializable
This file was automatically generated from template file abstractSynchronizedPrimitiveCollection.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:
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
-
select
public MutableShortCollection select(ShortPredicate predicate)
- Specified by:
selectin interfaceMutableShortCollection- Specified by:
selectin interfaceShortIterable
-
reject
public MutableShortCollection reject(ShortPredicate predicate)
- Specified by:
rejectin interfaceMutableShortCollection- Specified by:
rejectin interfaceShortIterable
-
collect
public <V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceMutableShortCollection- Specified by:
collectin interfaceShortIterable
-
with
public MutableShortCollection with(short element)
- Specified by:
within interfaceMutableShortCollection
-
without
public MutableShortCollection without(short element)
- Specified by:
withoutin interfaceMutableShortCollection
-
withAll
public MutableShortCollection withAll(ShortIterable elements)
- Specified by:
withAllin interfaceMutableShortCollection
-
withoutAll
public MutableShortCollection withoutAll(ShortIterable elements)
- Specified by:
withoutAllin interfaceMutableShortCollection
-
asUnmodifiable
public MutableShortCollection asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortCollection
-
asSynchronized
public MutableShortCollection asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortCollection
-
toImmutable
public ImmutableShortCollection toImmutable()
- Specified by:
toImmutablein interfaceMutableShortCollection
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazyin interfaceShortIterable
-
contains
public boolean contains(short value)
- Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source)
- Specified by:
containsAllin interfaceShortIterable
-
containsAll
public boolean containsAll(ShortIterable source)
- Specified by:
containsAllin interfaceShortIterable
-
containsAny
public boolean containsAny(short... source)
- Specified by:
containsAnyin interfaceShortIterable
-
containsAny
public boolean containsAny(ShortIterable source)
- Specified by:
containsAnyin interfaceShortIterable
-
containsNone
public boolean containsNone(short... source)
- Specified by:
containsNonein interfaceShortIterable
-
containsNone
public boolean containsNone(ShortIterable source)
- 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
public boolean addAll(ShortIterable source)
- Specified by:
addAllin interfaceMutableShortCollection
-
remove
public boolean remove(short value)
- Specified by:
removein interfaceMutableShortCollection
-
removeIf
public boolean removeIf(ShortPredicate predicate)
- Specified by:
removeIfin interfaceMutableShortCollection
-
removeAll
public boolean removeAll(ShortIterable source)
- Specified by:
removeAllin interfaceMutableShortCollection
-
removeAll
public boolean removeAll(short... source)
- Specified by:
removeAllin interfaceMutableShortCollection
-
retainAll
public boolean retainAll(ShortIterable source)
- Specified by:
retainAllin interfaceMutableShortCollection
-
retainAll
public boolean retainAll(short... source)
- Specified by:
retainAllin interfaceMutableShortCollection
-
shortIterator
public MutableShortIterator shortIterator()
Must be called in a synchronized block.- Specified by:
shortIteratorin interfaceMutableShortCollection- Specified by:
shortIteratorin interfaceShortIterable
-
each
public void each(ShortProcedure procedure)
- Specified by:
eachin interfaceShortIterable- Since:
- 7.0.
-
count
public int count(ShortPredicate predicate)
- Specified by:
countin interfaceShortIterable
-
anySatisfy
public boolean anySatisfy(ShortPredicate predicate)
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
public boolean allSatisfy(ShortPredicate predicate)
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
public boolean noneSatisfy(ShortPredicate predicate)
- Specified by:
noneSatisfyin interfaceShortIterable
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- 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
public MutableShortList 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
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
public MutableShortList toList()
- Specified by:
toListin interfaceShortIterable
-
toSet
public MutableShortSet toSet()
- Specified by:
toSetin interfaceShortIterable
-
toBag
public MutableShortBag toBag()
- Specified by:
toBagin interfaceShortIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceShortIterable
-
reduce
public long reduce(LongShortToLongFunction accumulator)
- Specified by:
reducein interfaceShortIterable
-
reduceIfEmpty
public long reduceIfEmpty(LongShortToLongFunction accumulator, long defaultValue)
- Specified by:
reduceIfEmptyin interfaceShortIterable
-
chunk
public RichIterable<ShortIterable> chunk(int size)
- Specified by:
chunkin interfaceShortIterable
-
-