public interface ImmutableByteSet extends ImmutableByteCollection, ByteSet
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableSet<V> |
collect(ByteToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default ImmutableByteSet |
difference(ByteSet set)
Returns the set of all members of
this that are not members of set. |
default ImmutableByteSet |
intersect(ByteSet set)
Returns the set of all objects that are members of both
this and set. |
ImmutableByteSet |
newWith(byte element) |
ImmutableByteSet |
newWithAll(ByteIterable elements) |
ImmutableByteSet |
newWithout(byte element) |
ImmutableByteSet |
newWithoutAll(ByteIterable elements) |
ImmutableByteSet |
reject(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
ImmutableByteSet |
select(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
default ImmutableByteSet |
symmetricDifference(ByteSet 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 ImmutableByteSet |
tap(ByteProcedure procedure) |
default ImmutableByteSet |
union(ByteSet set) |
cartesianProduct, equals, freeze, hashCode, isProperSubsetOf, isSubsetOf, toImmutableallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, byteIterator, 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, toStringImmutableByteSet select(BytePredicate predicate)
ByteIterableselect in interface ByteIterableselect in interface ByteSetselect in interface ImmutableByteCollectionImmutableByteSet reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface ByteSetreject in interface ImmutableByteCollectiondefault ImmutableByteSet tap(ByteProcedure procedure)
tap in interface ByteIterabletap in interface ByteSettap in interface ImmutableByteCollection<V> ImmutableSet<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface ByteSetcollect in interface ImmutableByteCollectiondefault ImmutableByteSet union(ByteSet set)
default ImmutableByteSet intersect(ByteSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default ImmutableByteSet difference(ByteSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is [1].difference in interface ByteSetdefault ImmutableByteSet symmetricDifference(ByteSet 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 ByteSetImmutableByteSet newWith(byte element)
newWith in interface ImmutableByteCollectionImmutableByteSet newWithout(byte element)
newWithout in interface ImmutableByteCollectionImmutableByteSet newWithAll(ByteIterable elements)
newWithAll in interface ImmutableByteCollectionImmutableByteSet newWithoutAll(ByteIterable elements)
newWithoutAll in interface ImmutableByteCollectionCopyright © 2004–2021. All rights reserved.