Class AbstractMutableShortKeySet
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableShortKeySet
-
- All Implemented Interfaces:
Externalizable,Serializable,MutableShortCollection,PrimitiveIterable,MutableShortSet,ShortSet,ShortIterable
public abstract class AbstractMutableShortKeySet extends Object implements MutableShortSet, Externalizable
This file was automatically generated from template file abstractMutablePrimitiveKeySet.stg.- Since:
- 6.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMutableShortKeySet()
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableShortCollection
removeIf, retainAll, retainAll, shortIterator
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableShortSet
difference, freeze, intersect, newEmpty, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.ShortIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ShortSet
isProperSubsetOf, isSubsetOf
-
-
-
-
Method Detail
-
boxed
public MutableSet<Short> boxed()
- Specified by:
boxedin interfaceMutableShortSet
-
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
-
add
public boolean add(short element)
- Specified by:
addin interfaceMutableShortCollection
-
addAll
public boolean addAll(short... source)
- Specified by:
addAllin interfaceMutableShortCollection
-
addAll
public boolean addAll(ShortIterable source)
- Specified by:
addAllin interfaceMutableShortCollection
-
select
public MutableShortSet select(ShortPredicate predicate)
- Specified by:
selectin interfaceMutableShortCollection- Specified by:
selectin interfaceMutableShortSet- Specified by:
selectin interfaceShortIterable- Specified by:
selectin interfaceShortSet
-
reject
public MutableShortSet reject(ShortPredicate predicate)
- Specified by:
rejectin interfaceMutableShortCollection- Specified by:
rejectin interfaceMutableShortSet- Specified by:
rejectin interfaceShortIterable- Specified by:
rejectin interfaceShortSet
-
with
public MutableShortSet with(short element)
- Specified by:
within interfaceMutableShortCollection- Specified by:
within interfaceMutableShortSet
-
without
public MutableShortSet without(short element)
- Specified by:
withoutin interfaceMutableShortCollection- Specified by:
withoutin interfaceMutableShortSet
-
withAll
public MutableShortSet withAll(ShortIterable elements)
- Specified by:
withAllin interfaceMutableShortCollection- Specified by:
withAllin interfaceMutableShortSet
-
withoutAll
public MutableShortSet withoutAll(ShortIterable elements)
- Specified by:
withoutAllin interfaceMutableShortCollection- Specified by:
withoutAllin interfaceMutableShortSet
-
collect
public <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceMutableShortCollection- Specified by:
collectin interfaceMutableShortSet- Specified by:
collectin interfaceShortIterable- Specified by:
collectin interfaceShortSet
-
remove
public boolean remove(short key)
- Specified by:
removein interfaceMutableShortCollection
-
removeAll
public boolean removeAll(ShortIterable source)
- Specified by:
removeAllin interfaceMutableShortCollection
-
removeAll
public boolean removeAll(short... source)
- Specified by:
removeAllin interfaceMutableShortCollection
-
clear
public void clear()
- Specified by:
clearin interfaceMutableShortCollection
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- Specified by:
detectIfNonein interfaceShortIterable
-
asUnmodifiable
public MutableShortSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortCollection- Specified by:
asUnmodifiablein interfaceMutableShortSet
-
asSynchronized
public MutableShortSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortCollection- Specified by:
asSynchronizedin interfaceMutableShortSet
-
sum
public long sum()
- Specified by:
sumin interfaceShortIterable
-
max
public short max()
- Specified by:
maxin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)
- Specified by:
maxIfEmptyin interfaceShortIterable
-
min
public short min()
- Specified by:
minin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)
- Specified by:
minIfEmptyin interfaceShortIterable
-
average
public double average()
- Specified by:
averagein interfaceShortIterable
-
median
public double median()
- Specified by:
medianin interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArrayin interfaceShortIterable
-
toSortedList
public MutableShortList toSortedList()
- Specified by:
toSortedListin interfaceShortIterable
-
toArray
public short[] toArray()
- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] result)
- Specified by:
toArrayin 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
-
cartesianProduct
public LazyIterable<ShortShortPair> cartesianProduct(ShortSet set)
- Specified by:
cartesianProductin interfaceShortSet
-
toList
public MutableShortList toList()
- Specified by:
toListin interfaceShortIterable
-
toSet
public MutableShortSet toSet()
- Specified by:
toSetin interfaceShortIterable
-
toBag
public MutableShortBag toBag()
- Specified by:
toBagin interfaceShortIterable
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazyin interfaceShortIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceShortIterable
-
toImmutable
public ImmutableShortSet toImmutable()
- Specified by:
toImmutablein interfaceMutableShortCollection- Specified by:
toImmutablein interfaceMutableShortSet- Specified by:
toImmutablein interfaceShortSet
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
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
-
chunk
public RichIterable<ShortIterable> chunk(int size)
- Specified by:
chunkin interfaceShortIterable
-
writeReplace
public Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-