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:
boxed
in interfaceMutableShortSet
-
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
-
add
public boolean add(short element)
- 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
-
select
public MutableShortSet select(ShortPredicate predicate)
- Specified by:
select
in interfaceMutableShortCollection
- Specified by:
select
in interfaceMutableShortSet
- Specified by:
select
in interfaceShortIterable
- Specified by:
select
in interfaceShortSet
-
reject
public MutableShortSet reject(ShortPredicate predicate)
- Specified by:
reject
in interfaceMutableShortCollection
- Specified by:
reject
in interfaceMutableShortSet
- Specified by:
reject
in interfaceShortIterable
- Specified by:
reject
in interfaceShortSet
-
with
public MutableShortSet with(short element)
- Specified by:
with
in interfaceMutableShortCollection
- Specified by:
with
in interfaceMutableShortSet
-
without
public MutableShortSet without(short element)
- Specified by:
without
in interfaceMutableShortCollection
- Specified by:
without
in interfaceMutableShortSet
-
withAll
public MutableShortSet withAll(ShortIterable elements)
- Specified by:
withAll
in interfaceMutableShortCollection
- Specified by:
withAll
in interfaceMutableShortSet
-
withoutAll
public MutableShortSet withoutAll(ShortIterable elements)
- Specified by:
withoutAll
in interfaceMutableShortCollection
- Specified by:
withoutAll
in interfaceMutableShortSet
-
collect
public <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceMutableShortCollection
- Specified by:
collect
in interfaceMutableShortSet
- Specified by:
collect
in interfaceShortIterable
- Specified by:
collect
in interfaceShortSet
-
remove
public boolean remove(short key)
- Specified by:
remove
in interfaceMutableShortCollection
-
removeAll
public boolean removeAll(ShortIterable source)
- Specified by:
removeAll
in interfaceMutableShortCollection
-
removeAll
public boolean removeAll(short... source)
- Specified by:
removeAll
in interfaceMutableShortCollection
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableShortCollection
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- Specified by:
detectIfNone
in interfaceShortIterable
-
asUnmodifiable
public MutableShortSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableShortCollection
- Specified by:
asUnmodifiable
in interfaceMutableShortSet
-
asSynchronized
public MutableShortSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableShortCollection
- Specified by:
asSynchronized
in interfaceMutableShortSet
-
sum
public long sum()
- Specified by:
sum
in interfaceShortIterable
-
max
public short max()
- Specified by:
max
in interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)
- Specified by:
maxIfEmpty
in interfaceShortIterable
-
min
public short min()
- Specified by:
min
in interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)
- Specified by:
minIfEmpty
in interfaceShortIterable
-
average
public double average()
- Specified by:
average
in interfaceShortIterable
-
median
public double median()
- Specified by:
median
in interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArray
in interfaceShortIterable
-
toSortedList
public MutableShortList toSortedList()
- Specified by:
toSortedList
in interfaceShortIterable
-
toArray
public short[] toArray()
- Specified by:
toArray
in interfaceShortIterable
-
toArray
public short[] toArray(short[] result)
- Specified by:
toArray
in interfaceShortIterable
-
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
-
cartesianProduct
public LazyIterable<ShortShortPair> cartesianProduct(ShortSet set)
- Specified by:
cartesianProduct
in interfaceShortSet
-
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
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazy
in interfaceShortIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceShortIterable
-
toImmutable
public ImmutableShortSet toImmutable()
- Specified by:
toImmutable
in interfaceMutableShortCollection
- Specified by:
toImmutable
in interfaceMutableShortSet
- Specified by:
toImmutable
in interfaceShortSet
-
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
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
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
-
chunk
public RichIterable<ShortIterable> chunk(int size)
- Specified by:
chunk
in interfaceShortIterable
-
writeReplace
public Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-