public final class ShortHashSet extends AbstractShortSet implements org.eclipse.collections.api.set.primitive.MutableShortSet, Externalizable
| Constructor and Description |
|---|
ShortHashSet() |
ShortHashSet(int initialCapacity) |
ShortHashSet(short... elements) |
ShortHashSet(ShortHashSet set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short element) |
boolean |
addAll(short... source) |
boolean |
addAll(org.eclipse.collections.api.ShortIterable source) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.set.primitive.MutableShortSet |
asSynchronized() |
org.eclipse.collections.api.set.primitive.MutableShortSet |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.set.MutableSet<V> |
collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(short value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
short |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate,
short ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
org.eclipse.collections.api.set.primitive.ShortSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super T,? extends T> function) |
short |
max() |
short |
min() |
static ShortHashSet |
newSet(org.eclipse.collections.api.ShortIterable source) |
static ShortHashSet |
newSetWith(short... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.set.primitive.MutableShortSet |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
remove(short value) |
boolean |
removeAll(short... source) |
boolean |
removeAll(org.eclipse.collections.api.ShortIterable source) |
boolean |
retainAll(short... source) |
boolean |
retainAll(org.eclipse.collections.api.ShortIterable source) |
ShortHashSet |
select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
org.eclipse.collections.api.iterator.MutableShortIterator |
shortIterator() |
int |
size() |
long |
sum() |
short[] |
toArray() |
org.eclipse.collections.api.set.primitive.ImmutableShortSet |
toImmutable() |
ShortHashSet |
with(short element) |
ShortHashSet |
withAll(org.eclipse.collections.api.ShortIterable elements) |
ShortHashSet |
without(short element) |
ShortHashSet |
withoutAll(org.eclipse.collections.api.ShortIterable elements) |
void |
writeExternal(ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic ShortHashSet()
public ShortHashSet(int initialCapacity)
public ShortHashSet(short... elements)
public ShortHashSet(ShortHashSet set)
public static ShortHashSet newSet(org.eclipse.collections.api.ShortIterable source)
public static ShortHashSet newSetWith(short... source)
public int hashCode()
hashCode in interface org.eclipse.collections.api.set.primitive.ShortSethashCode in class AbstractShortSetpublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean add(short element)
add in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean addAll(short... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean addAll(org.eclipse.collections.api.ShortIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean remove(short value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean removeAll(org.eclipse.collections.api.ShortIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean removeAll(short... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean retainAll(org.eclipse.collections.api.ShortIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic boolean retainAll(short... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionpublic ShortHashSet with(short element)
with in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwith in interface org.eclipse.collections.api.set.primitive.MutableShortSetpublic ShortHashSet without(short element)
without in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithout in interface org.eclipse.collections.api.set.primitive.MutableShortSetpublic ShortHashSet withAll(org.eclipse.collections.api.ShortIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithAll in interface org.eclipse.collections.api.set.primitive.MutableShortSetpublic ShortHashSet withoutAll(org.eclipse.collections.api.ShortIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithoutAll in interface org.eclipse.collections.api.set.primitive.MutableShortSetpublic org.eclipse.collections.api.set.primitive.MutableShortSet asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionasUnmodifiable in interface org.eclipse.collections.api.set.primitive.MutableShortSetpublic org.eclipse.collections.api.set.primitive.MutableShortSet asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionasSynchronized in interface org.eclipse.collections.api.set.primitive.MutableShortSetpublic org.eclipse.collections.api.set.primitive.ImmutableShortSet toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectiontoImmutable in interface org.eclipse.collections.api.set.primitive.MutableShortSettoImmutable in interface org.eclipse.collections.api.set.primitive.ShortSetpublic org.eclipse.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionshortIterator in interface org.eclipse.collections.api.ShortIterablepublic short[] toArray()
toArray in interface org.eclipse.collections.api.ShortIterablepublic boolean contains(short value)
contains in interface org.eclipse.collections.api.ShortIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEach in interface org.eclipse.collections.api.ShortIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
each in interface org.eclipse.collections.api.ShortIterablepublic ShortHashSet select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionselect in interface org.eclipse.collections.api.set.primitive.MutableShortSetselect in interface org.eclipse.collections.api.set.primitive.ShortSetselect in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.set.primitive.MutableShortSet reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionreject in interface org.eclipse.collections.api.set.primitive.MutableShortSetreject in interface org.eclipse.collections.api.set.primitive.ShortSetreject in interface org.eclipse.collections.api.ShortIterablepublic <V> org.eclipse.collections.api.set.MutableSet<V> collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectioncollect in interface org.eclipse.collections.api.set.primitive.MutableShortSetcollect in interface org.eclipse.collections.api.set.primitive.ShortSetcollect in interface org.eclipse.collections.api.ShortIterablepublic short detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate,
short ifNone)
detectIfNone in interface org.eclipse.collections.api.ShortIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
count in interface org.eclipse.collections.api.ShortIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ShortIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ShortIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ShortIterablepublic long sum()
sum in interface org.eclipse.collections.api.ShortIterablepublic short max()
max in interface org.eclipse.collections.api.ShortIterablepublic short min()
min in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.set.primitive.ShortSet freeze()
freeze in interface org.eclipse.collections.api.set.primitive.MutableShortSetfreeze in interface org.eclipse.collections.api.set.primitive.ShortSetpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.ShortIterablepublic void compact()
Copyright © 2004–2018. All rights reserved.