public interface BooleanSet extends BooleanIterable
| Modifier and Type | Method and Description |
|---|---|
LazyIterable<BooleanBooleanPair> |
cartesianProduct(BooleanSet set)
Returns the set whose members are all possible ordered pairs (a, b) where a is a member of
this and b is a
member of set. |
<V> SetIterable<V> |
collect(BooleanToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
BooleanSet |
difference(BooleanSet set)
Returns the set of all members of
this that are not members of set. |
boolean |
equals(Object o)
Follows the same general contract as
Set.equals(Object). |
BooleanSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
BooleanSet |
intersect(BooleanSet set)
Returns the set of all objects that are members of both
this and set. |
default boolean |
isProperSubsetOf(BooleanSet set)
Returns true if all the members of
this are also members of set and the
two sets are not equal. |
default boolean |
isSubsetOf(BooleanSet set)
Returns true if all the members of
this are also members of set. |
BooleanSet |
reject(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
BooleanSet |
select(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
BooleanSet |
symmetricDifference(BooleanSet 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 BooleanSet |
tap(BooleanProcedure procedure) |
ImmutableBooleanSet |
toImmutable()
Returns an immutable copy of this set.
|
BooleanSet |
union(BooleanSet set) |
allSatisfy, anySatisfy, asLazy, booleanIterator, 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, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringdefault BooleanSet tap(BooleanProcedure procedure)
tap in interface BooleanIterableBooleanSet union(BooleanSet set)
BooleanSet intersect(BooleanSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].BooleanSet difference(BooleanSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is the set [1].BooleanSet symmetricDifference(BooleanSet 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.default boolean isSubsetOf(BooleanSet set)
this are also members of set.
For example, [1, 2] is a subset of [1, 2, 3], but [1, 4] is not.default boolean isProperSubsetOf(BooleanSet set)
this are also members of set and the
two sets are not equal. For example, [1, 2] is a proper subset of [1, 2, 3], but [1, 2, 3] is not.LazyIterable<BooleanBooleanPair> cartesianProduct(BooleanSet set)
this and b is a
member of set.boolean equals(Object o)
Set.equals(Object).int hashCode()
Set.hashCode().BooleanSet select(BooleanPredicate predicate)
BooleanIterableselect in interface BooleanIterableBooleanSet reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanIterable<V> SetIterable<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterablecollect in interface BooleanIterableBooleanSet freeze()
ImmutableBooleanSet toImmutable()
Copyright © 2004–2022. All rights reserved.