public interface MutableDoubleSet extends MutableDoubleCollection, DoubleSet
| Modifier and Type | Method and Description |
|---|---|
MutableDoubleSet |
asSynchronized() |
MutableDoubleSet |
asUnmodifiable() |
<V> MutableSet<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.
|
default MutableDoubleSet |
difference(DoubleSet set)
Returns the set of all members of
this that are not members of set. |
DoubleSet |
freeze()
Returns a frozen copy of this set.
|
default MutableDoubleSet |
intersect(DoubleSet set)
Returns the set of all objects that are members of both
this and set. |
default MutableDoubleSet |
newEmpty()
Creates a new empty mutable version of the same Set type.
|
MutableDoubleSet |
reject(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
MutableDoubleSet |
select(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
default MutableDoubleSet |
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 MutableDoubleSet |
tap(DoubleProcedure procedure) |
ImmutableDoubleSet |
toImmutable()
Returns an immutable copy of this set.
|
default MutableDoubleSet |
union(DoubleSet set) |
MutableDoubleSet |
with(double element) |
MutableDoubleSet |
withAll(DoubleIterable elements) |
MutableDoubleSet |
without(double element) |
MutableDoubleSet |
withoutAll(DoubleIterable elements) |
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllcartesianProduct, 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, toStringMutableDoubleSet select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleSetselect in interface MutableDoubleCollectionMutableDoubleSet reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleSetreject in interface MutableDoubleCollectiondefault MutableDoubleSet tap(DoubleProcedure procedure)
tap in interface DoubleIterabletap in interface DoubleSettap in interface MutableDoubleCollection<V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleSetcollect in interface MutableDoubleCollectionMutableDoubleSet with(double element)
with in interface MutableDoubleCollectionMutableDoubleSet without(double element)
without in interface MutableDoubleCollectionMutableDoubleSet withAll(DoubleIterable elements)
withAll in interface MutableDoubleCollectionMutableDoubleSet withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleCollectionMutableDoubleSet asUnmodifiable()
asUnmodifiable in interface MutableDoubleCollectionMutableDoubleSet asSynchronized()
asSynchronized in interface MutableDoubleCollectionDoubleSet freeze()
ImmutableDoubleSet toImmutable()
toImmutable in interface DoubleSettoImmutable in interface MutableDoubleCollectiondefault MutableDoubleSet newEmpty()
newEmpty in interface MutableDoubleCollectiondefault MutableDoubleSet union(DoubleSet set)
default MutableDoubleSet intersect(DoubleSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default MutableDoubleSet difference(DoubleSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is [1].difference in interface DoubleSetdefault MutableDoubleSet 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.symmetricDifference in interface DoubleSetCopyright © 2004–2021. All rights reserved.