public interface MutableShortSet extends MutableShortCollection, ShortSet
| Modifier and Type | Method and Description |
|---|---|
MutableShortSet |
asSynchronized() |
MutableShortSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(ShortToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default MutableShortSet |
difference(ShortSet set)
Returns the set of all members of
this that are not members of set. |
ShortSet |
freeze()
Returns a frozen copy of this set.
|
default MutableShortSet |
intersect(ShortSet set)
Returns the set of all objects that are members of both
this and set. |
default MutableShortSet |
newEmpty()
Creates a new empty mutable version of the same Set type.
|
MutableShortSet |
reject(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
MutableShortSet |
select(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
default MutableShortSet |
symmetricDifference(ShortSet set)
Returns the set of all objects that are a member of exactly one of
this and set (elements which
are in one of the sets, but not in both). |
default MutableShortSet |
tap(ShortProcedure procedure) |
ImmutableShortSet |
toImmutable()
Returns an immutable copy of this set.
|
default MutableShortSet |
union(ShortSet set) |
MutableShortSet |
with(short element) |
MutableShortSet |
withAll(ShortIterable elements) |
MutableShortSet |
without(short element) |
MutableShortSet |
withoutAll(ShortIterable elements) |
add, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIteratorcartesianProduct, equals, hashCode, isProperSubsetOf, isSubsetOfallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMutableShortSet select(ShortPredicate predicate)
ShortIterableselect in interface MutableShortCollectionselect in interface ShortIterableselect in interface ShortSetMutableShortSet reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortCollectionreject in interface ShortIterablereject in interface ShortSetdefault MutableShortSet tap(ShortProcedure procedure)
tap in interface MutableShortCollectiontap in interface ShortIterabletap in interface ShortSet<V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortCollectioncollect in interface ShortIterablecollect in interface ShortSetMutableShortSet with(short element)
with in interface MutableShortCollectionMutableShortSet without(short element)
without in interface MutableShortCollectionMutableShortSet withAll(ShortIterable elements)
withAll in interface MutableShortCollectionMutableShortSet withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectionMutableShortSet asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionMutableShortSet asSynchronized()
asSynchronized in interface MutableShortCollectionShortSet freeze()
ImmutableShortSet toImmutable()
toImmutable in interface MutableShortCollectiontoImmutable in interface ShortSetdefault MutableShortSet newEmpty()
newEmpty in interface MutableShortCollectiondefault MutableShortSet union(ShortSet set)
default MutableShortSet intersect(ShortSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default MutableShortSet difference(ShortSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is [1].difference in interface ShortSetdefault MutableShortSet symmetricDifference(ShortSet set)
this and set (elements which
are in one of the sets, but not in both). For instance, for the sets [1, 2, 3] and [2, 3, 4], the symmetric
difference set is [1, 4] . It is the set difference of the union and the intersection.symmetricDifference in interface ShortSetCopyright © 2004–2021. All rights reserved.