Serializable
, MutableDoubleCollection
, DoubleIterable
, PrimitiveIterable
, DoubleSet
, MutableDoubleSet
public class UnmodifiableDoubleSet extends AbstractUnmodifiableDoubleCollection implements MutableDoubleSet
Constructor | Description |
---|---|
UnmodifiableDoubleSet(MutableDoubleSet set) |
Modifier and Type | Method | 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.
|
boolean |
equals(Object otherSet) |
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() . |
MutableDoubleSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableDoubleSet |
of(MutableDoubleSet set) |
This method will take a MutableDoubleSet and wrap it directly in a UnmodifiableDoubleSet.
|
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.
|
ImmutableDoubleSet |
toImmutable() |
Returns an immutable copy of this set.
|
UnmodifiableDoubleSet |
with(double element) |
|
UnmodifiableDoubleSet |
withAll(DoubleIterable elements) |
|
UnmodifiableDoubleSet |
without(double element) |
|
UnmodifiableDoubleSet |
withoutAll(DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public UnmodifiableDoubleSet(MutableDoubleSet set)
public static UnmodifiableDoubleSet of(MutableDoubleSet set)
public UnmodifiableDoubleSet with(double element)
with
in interface MutableDoubleCollection
with
in interface MutableDoubleSet
with
in class AbstractUnmodifiableDoubleCollection
public UnmodifiableDoubleSet without(double element)
without
in interface MutableDoubleCollection
without
in interface MutableDoubleSet
without
in class AbstractUnmodifiableDoubleCollection
public UnmodifiableDoubleSet withAll(DoubleIterable elements)
withAll
in interface MutableDoubleCollection
withAll
in interface MutableDoubleSet
withAll
in class AbstractUnmodifiableDoubleCollection
public UnmodifiableDoubleSet withoutAll(DoubleIterable elements)
withoutAll
in interface MutableDoubleCollection
withoutAll
in interface MutableDoubleSet
withoutAll
in class AbstractUnmodifiableDoubleCollection
public MutableDoubleSet select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface DoubleSet
select
in interface MutableDoubleCollection
select
in interface MutableDoubleSet
select
in class AbstractUnmodifiableDoubleCollection
public MutableDoubleSet reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface DoubleSet
reject
in interface MutableDoubleCollection
reject
in interface MutableDoubleSet
reject
in class AbstractUnmodifiableDoubleCollection
public <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface DoubleSet
collect
in interface MutableDoubleCollection
collect
in interface MutableDoubleSet
collect
in class AbstractUnmodifiableDoubleCollection
public boolean equals(Object otherSet)
DoubleSet
Set.equals(Object)
.public int hashCode()
DoubleSet
Set.hashCode()
.public MutableDoubleSet asUnmodifiable()
asUnmodifiable
in interface MutableDoubleCollection
asUnmodifiable
in interface MutableDoubleSet
asUnmodifiable
in class AbstractUnmodifiableDoubleCollection
public MutableDoubleSet asSynchronized()
asSynchronized
in interface MutableDoubleCollection
asSynchronized
in interface MutableDoubleSet
asSynchronized
in class AbstractUnmodifiableDoubleCollection
public DoubleSet freeze()
MutableDoubleSet
freeze
in interface DoubleSet
freeze
in interface MutableDoubleSet
public ImmutableDoubleSet toImmutable()
MutableDoubleSet
toImmutable
in interface DoubleSet
toImmutable
in interface MutableDoubleCollection
toImmutable
in interface MutableDoubleSet
toImmutable
in class AbstractUnmodifiableDoubleCollection
public MutableDoubleSet newEmpty()
MutableDoubleSet
newEmpty
in interface MutableDoubleCollection
newEmpty
in interface MutableDoubleSet
Copyright © 2004–2019. All rights reserved.