public interface ImmutableShortSet extends ImmutableShortCollection, ShortSet
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableSet<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 ImmutableShortSet |
difference(ShortSet set)
Returns the set of all members of
this that are not members of set. |
default ImmutableShortSet |
intersect(ShortSet set)
Returns the set of all objects that are members of both
this and set. |
ImmutableShortSet |
newWith(short element) |
ImmutableShortSet |
newWithAll(ShortIterable elements) |
ImmutableShortSet |
newWithout(short element) |
ImmutableShortSet |
newWithoutAll(ShortIterable elements) |
ImmutableShortSet |
reject(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
ImmutableShortSet |
select(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
default ImmutableShortSet |
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 ImmutableShortSet |
tap(ShortProcedure procedure) |
default ImmutableShortSet |
union(ShortSet set) |
cartesianProduct, equals, freeze, hashCode, isProperSubsetOf, isSubsetOf, toImmutableallSatisfy, 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, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableShortSet select(ShortPredicate predicate)
ShortIterableselect in interface ImmutableShortCollectionselect in interface ShortIterableselect in interface ShortSetImmutableShortSet reject(ShortPredicate predicate)
ShortIterablereject in interface ImmutableShortCollectionreject in interface ShortIterablereject in interface ShortSetdefault ImmutableShortSet tap(ShortProcedure procedure)
tap in interface ImmutableShortCollectiontap in interface ShortIterabletap in interface ShortSet<V> ImmutableSet<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface ImmutableShortCollectioncollect in interface ShortIterablecollect in interface ShortSetdefault ImmutableShortSet union(ShortSet set)
default ImmutableShortSet intersect(ShortSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default ImmutableShortSet 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 ImmutableShortSet 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 ShortSetImmutableShortSet newWith(short element)
newWith in interface ImmutableShortCollectionImmutableShortSet newWithout(short element)
newWithout in interface ImmutableShortCollectionImmutableShortSet newWithAll(ShortIterable elements)
newWithAll in interface ImmutableShortCollectionImmutableShortSet newWithoutAll(ShortIterable elements)
newWithoutAll in interface ImmutableShortCollectionCopyright © 2004–2023. All rights reserved.