Top Description Methods
org.eclipse.collections.api.collection.primitive

public Interface MutableShortCollection

extends ShortIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableShortList, org.eclipse.collections.api.set.primitive.MutableShortSet, org.eclipse.collections.api.bag.primitive.MutableShortBag
Imports
java.util.Collection, org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.iterator.MutableShortIterator, org.eclipse.collections.api.collection.MutableCollection

This file was automatically generated from template file mutablePrimitiveCollection.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public boolean
add(short element)

public boolean
addAll(short... source)

public boolean
public MutableShortCollection
public MutableShortCollection
public void
public <V> MutableCollection<V>
collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ShortIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default MutableShortCollection
newEmpty()

Creates a new empty mutable version of the same collection type.

public MutableShortCollection
reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.ShortIterable.reject.

Returns a new ShortIterable with all of the elements in the ShortIterable that return false for the specified predicate.

public boolean
remove(short value)

public boolean
public boolean
removeAll(short... source)

public default boolean
public boolean
public boolean
retainAll(short... source)

public MutableShortCollection
select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.ShortIterable.select.

Returns a new ShortIterable with all of the elements in the ShortIterable that return true for the specified predicate.

public MutableShortIterator
shortIterator()

Redeclares org.eclipse.collections.api.ShortIterable.shortIterator.

Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.

public default MutableShortCollection
public ImmutableShortCollection
public MutableShortCollection
with(short element)

public MutableShortCollection
public MutableShortCollection
without(short element)

public MutableShortCollection
Inherited from org.eclipse.collections.api.ShortIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(short element)
addAllback to summary
public boolean addAll(short... source)
addAllback to summary
public boolean addAll(ShortIterable source)
asSynchronizedback to summary
public MutableShortCollection asSynchronized()
asUnmodifiableback to summary
public MutableShortCollection asUnmodifiable()
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ShortIterable.collect.

Doc from org.eclipse.collections.api.ShortIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

newEmptyback to summary
public default MutableShortCollection newEmpty()

Creates a new empty mutable version of the same collection type.

Since
9.2.
rejectback to summary
public MutableShortCollection reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.ShortIterable.reject.

Doc from org.eclipse.collections.api.ShortIterable.reject.

Returns a new ShortIterable with all of the elements in the ShortIterable that return false for the specified predicate.

Annotations
@Override
removeback to summary
public boolean remove(short value)
removeAllback to summary
public boolean removeAll(ShortIterable source)
removeAllback to summary
public boolean removeAll(short... source)
removeIfback to summary
public default boolean removeIf(ShortPredicate predicate)
Since
9.1
retainAllback to summary
public boolean retainAll(ShortIterable elements)
Since
5.0
See Also
Collection#retainAll(Collection)
retainAllback to summary
public boolean retainAll(short... source)
Since
5.0
See Also
Collection#retainAll(Collection)
selectback to summary
public MutableShortCollection select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.ShortIterable.select.

Doc from org.eclipse.collections.api.ShortIterable.select.

Returns a new ShortIterable with all of the elements in the ShortIterable that return true for the specified predicate.

Annotations
@Override
shortIteratorback to summary
public MutableShortIterator shortIterator()

Redeclares org.eclipse.collections.api.ShortIterable.shortIterator.

Doc from org.eclipse.collections.api.ShortIterable.shortIterator.

Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.

Annotations
@Override
tapback to summary
public default MutableShortCollection tap(ShortProcedure procedure)

Overrides default org.eclipse.collections.api.ShortIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableShortCollection toImmutable()
withback to summary
public MutableShortCollection with(short element)
withAllback to summary
public MutableShortCollection withAll(ShortIterable elements)
withoutback to summary
public MutableShortCollection without(short element)
withoutAllback to summary
public MutableShortCollection withoutAll(ShortIterable elements)