MutableDoubleCollection, DoubleIterable, PrimitiveIterable, DoubleSet, MutableDoubleSetpublic 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(java.lang.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, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableDoubleSet(MutableDoubleSet set)
public static UnmodifiableDoubleSet of(MutableDoubleSet set)
public UnmodifiableDoubleSet with(double element)
with in interface MutableDoubleCollectionwith in interface MutableDoubleSetwith in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleSet without(double element)
without in interface MutableDoubleCollectionwithout in interface MutableDoubleSetwithout in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleSet withAll(DoubleIterable elements)
withAll in interface MutableDoubleCollectionwithAll in interface MutableDoubleSetwithAll in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleSet withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleCollectionwithoutAll in interface MutableDoubleSetwithoutAll in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleSet select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleSetselect in interface MutableDoubleCollectionselect in interface MutableDoubleSetselect in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleSet reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleSetreject in interface MutableDoubleCollectionreject in interface MutableDoubleSetreject in class AbstractUnmodifiableDoubleCollectionpublic <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleSetcollect in interface MutableDoubleCollectioncollect in interface MutableDoubleSetcollect in class AbstractUnmodifiableDoubleCollectionpublic boolean equals(java.lang.Object otherSet)
DoubleSetSet.equals(Object).public int hashCode()
DoubleSetSet.hashCode().public MutableDoubleSet asUnmodifiable()
asUnmodifiable in interface MutableDoubleCollectionasUnmodifiable in interface MutableDoubleSetasUnmodifiable in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleSet asSynchronized()
asSynchronized in interface MutableDoubleCollectionasSynchronized in interface MutableDoubleSetasSynchronized in class AbstractUnmodifiableDoubleCollectionpublic DoubleSet freeze()
MutableDoubleSetfreeze in interface DoubleSetfreeze in interface MutableDoubleSetpublic ImmutableDoubleSet toImmutable()
MutableDoubleSettoImmutable in interface DoubleSettoImmutable in interface MutableDoubleCollectiontoImmutable in interface MutableDoubleSettoImmutable in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleSet newEmpty()
MutableDoubleSetnewEmpty in interface MutableDoubleCollectionnewEmpty in interface MutableDoubleSetCopyright © 2004–2018. All rights reserved.