public interface DoubleSet extends DoubleIterable
| Modifier and Type | Method and Description |
|---|---|
LazyIterable<DoubleDoublePair> |
cartesianProduct(DoubleSet 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(DoubleToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
DoubleSet |
difference(DoubleSet 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). |
DoubleSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
DoubleSet |
intersect(DoubleSet set)
Returns the set of all objects that are members of both
this and set. |
default boolean |
isProperSubsetOf(DoubleSet set)
Returns true if all the members of
this are also members of set and the
two sets are not equal. |
default boolean |
isSubsetOf(DoubleSet set)
Returns true if all the members of
this are also members of set. |
DoubleSet |
reject(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
DoubleSet |
select(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
DoubleSet |
symmetricDifference(DoubleSet 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 DoubleSet |
tap(DoubleProcedure procedure) |
ImmutableDoubleSet |
toImmutable()
Returns an immutable copy of this set.
|
DoubleSet |
union(DoubleSet set) |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, 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, toStringdefault DoubleSet tap(DoubleProcedure procedure)
tap in interface DoubleIterableDoubleSet intersect(DoubleSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].DoubleSet difference(DoubleSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is the set [1].DoubleSet symmetricDifference(DoubleSet 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(DoubleSet 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(DoubleSet 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<DoubleDoublePair> cartesianProduct(DoubleSet set)
this and b is a
member of set.boolean equals(Object o)
Set.equals(Object).int hashCode()
Set.hashCode().DoubleSet select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableDoubleSet reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterable<V> SetIterable<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterableDoubleSet freeze()
ImmutableDoubleSet toImmutable()
Copyright © 2004–2023. All rights reserved.