public class ShortHashSet extends AbstractShortSet implements MutableShortSet, Externalizable
| Constructor and Description |
|---|
ShortHashSet() |
ShortHashSet(int initialCapacity) |
ShortHashSet(short... elements) |
ShortHashSet(ShortHashSet set) |
ShortHashSet(ShortIterable elements) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short element) |
boolean |
addAll(short... source) |
boolean |
addAll(ShortIterable source) |
boolean |
allSatisfy(ShortPredicate predicate) |
boolean |
anySatisfy(ShortPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
MutableShortSet |
asSynchronized() |
MutableShortSet |
asUnmodifiable() |
RichIterable<ShortIterable> |
chunk(int size) |
void |
clear() |
<V> MutableSet<V> |
collect(ShortToObjectFunction<? extends V> function) |
<V,R extends Collection<V>> |
collect(ShortToObjectFunction<? extends V> function,
R target) |
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(ShortPredicate predicate) |
short |
detectIfNone(ShortPredicate predicate,
short ifNone) |
void |
each(ShortProcedure procedure) |
ShortSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function) |
short |
max() |
short |
min() |
ShortHashSet |
newEmpty()
Creates a new empty ShortHashSet.
|
static ShortHashSet |
newSet(ShortIterable source) |
static ShortHashSet |
newSetWith(short... source) |
void |
readExternal(ObjectInput in) |
ShortHashSet |
reject(ShortPredicate predicate) |
<R extends MutableShortCollection> |
reject(ShortPredicate predicate,
R target) |
boolean |
remove(short value) |
boolean |
removeAll(short... source) |
boolean |
removeAll(ShortIterable source) |
boolean |
retainAll(short... source) |
boolean |
retainAll(ShortIterable source) |
ShortHashSet |
select(ShortPredicate predicate) |
<R extends MutableShortCollection> |
select(ShortPredicate predicate,
R target) |
MutableShortIterator |
shortIterator() |
int |
size() |
long |
sum() |
short[] |
toArray() |
short[] |
toArray(short[] array) |
ImmutableShortSet |
toImmutable() |
ShortHashSet |
with(short element) |
ShortHashSet |
withAll(ShortIterable elements) |
ShortHashSet |
without(short element) |
ShortHashSet |
withoutAll(ShortIterable elements) |
void |
writeExternal(ObjectOutput out) |
cartesianProduct, equalsasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringdifference, intersect, symmetricDifference, tap, unionremoveIfcartesianProduct, equals, isProperSubsetOf, isSubsetOfasLazy, average, averageIfEmpty, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toStringpublic ShortHashSet()
public ShortHashSet(int initialCapacity)
public ShortHashSet(short... elements)
public ShortHashSet(ShortIterable elements)
public ShortHashSet(ShortHashSet set)
public static ShortHashSet newSet(ShortIterable source)
public static ShortHashSet newSetWith(short... source)
public int hashCode()
hashCode in interface ShortSethashCode in class AbstractShortSetpublic int size()
size in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic boolean add(short element)
add in interface MutableShortCollectionpublic boolean addAll(short... source)
addAll in interface MutableShortCollectionpublic boolean addAll(ShortIterable source)
addAll in interface MutableShortCollectionpublic boolean remove(short value)
remove in interface MutableShortCollectionpublic boolean removeAll(ShortIterable source)
removeAll in interface MutableShortCollectionpublic boolean removeAll(short... source)
removeAll in interface MutableShortCollectionpublic boolean retainAll(ShortIterable source)
retainAll in interface MutableShortCollectionpublic boolean retainAll(short... source)
retainAll in interface MutableShortCollectionpublic void clear()
clear in interface MutableShortCollectionpublic ShortHashSet with(short element)
with in interface MutableShortCollectionwith in interface MutableShortSetpublic ShortHashSet without(short element)
without in interface MutableShortCollectionwithout in interface MutableShortSetpublic ShortHashSet withAll(ShortIterable elements)
withAll in interface MutableShortCollectionwithAll in interface MutableShortSetpublic ShortHashSet withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectionwithoutAll in interface MutableShortSetpublic MutableShortSet asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionasUnmodifiable in interface MutableShortSetpublic MutableShortSet asSynchronized()
asSynchronized in interface MutableShortCollectionasSynchronized in interface MutableShortSetpublic ImmutableShortSet toImmutable()
toImmutable in interface MutableShortCollectiontoImmutable in interface MutableShortSettoImmutable in interface ShortSetpublic MutableShortIterator shortIterator()
shortIterator in interface MutableShortCollectionshortIterator in interface ShortIterablepublic short[] toArray()
toArray in interface ShortIterablepublic short[] toArray(short[] array)
toArray in interface ShortIterablepublic boolean contains(short value)
contains in interface ShortIterablepublic void each(ShortProcedure procedure)
each in interface ShortIterablepublic ShortHashSet select(ShortPredicate predicate)
select in interface MutableShortCollectionselect in interface MutableShortSetselect in interface ShortSetselect in interface ShortIterablepublic <R extends MutableShortCollection> R select(ShortPredicate predicate, R target)
select in interface ShortIterablepublic ShortHashSet reject(ShortPredicate predicate)
reject in interface MutableShortCollectionreject in interface MutableShortSetreject in interface ShortSetreject in interface ShortIterablepublic <R extends MutableShortCollection> R reject(ShortPredicate predicate, R target)
reject in interface ShortIterablepublic <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortCollectioncollect in interface MutableShortSetcollect in interface ShortSetcollect in interface ShortIterablepublic <V,R extends Collection<V>> R collect(ShortToObjectFunction<? extends V> function, R target)
collect in interface ShortIterablepublic short detectIfNone(ShortPredicate predicate, short ifNone)
detectIfNone in interface ShortIterablepublic int count(ShortPredicate predicate)
count in interface ShortIterablepublic boolean anySatisfy(ShortPredicate predicate)
anySatisfy in interface ShortIterablepublic boolean allSatisfy(ShortPredicate predicate)
allSatisfy in interface ShortIterablepublic long sum()
sum in interface ShortIterablepublic short max()
max in interface ShortIterablepublic short min()
min in interface ShortIterablepublic ShortSet freeze()
freeze in interface MutableShortSetfreeze in interface 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,
ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface ShortIterablepublic RichIterable<ShortIterable> chunk(int size)
chunk in interface ShortIterablepublic ShortHashSet newEmpty()
newEmpty in interface MutableShortCollectionnewEmpty in interface MutableShortSetpublic void compact()
Copyright © 2004–2022. All rights reserved.