public interface MutableDoubleBag extends MutableDoubleCollection, DoubleBag
Modifier and Type | Method and Description |
---|---|
void |
addOccurrences(double item,
int occurrences) |
MutableDoubleBag |
asSynchronized() |
MutableDoubleBag |
asUnmodifiable() |
<V> MutableBag<V> |
collect(DoubleToObjectFunction<? extends V> function) |
MutableDoubleBag |
reject(DoublePredicate predicate) |
boolean |
removeOccurrences(double item,
int occurrences) |
MutableDoubleBag |
select(DoublePredicate predicate) |
ImmutableDoubleBag |
toImmutable()
Returns an immutable copy of this bag.
|
MutableDoubleBag |
with(double element) |
MutableDoubleBag |
withAll(DoubleIterable elements) |
MutableDoubleBag |
without(double element) |
MutableDoubleBag |
withoutAll(DoubleIterable elements) |
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, retainAll, retainAll
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void addOccurrences(double item, int occurrences)
boolean removeOccurrences(double item, int occurrences)
MutableDoubleBag select(DoublePredicate predicate)
select
in interface DoubleBag
select
in interface DoubleIterable
select
in interface MutableDoubleCollection
MutableDoubleBag reject(DoublePredicate predicate)
reject
in interface DoubleBag
reject
in interface DoubleIterable
reject
in interface MutableDoubleCollection
<V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
collect
in interface DoubleBag
collect
in interface DoubleIterable
collect
in interface MutableDoubleCollection
MutableDoubleBag with(double element)
with
in interface MutableDoubleCollection
MutableDoubleBag without(double element)
without
in interface MutableDoubleCollection
MutableDoubleBag withAll(DoubleIterable elements)
withAll
in interface MutableDoubleCollection
MutableDoubleBag withoutAll(DoubleIterable elements)
withoutAll
in interface MutableDoubleCollection
MutableDoubleBag asUnmodifiable()
asUnmodifiable
in interface MutableDoubleCollection
MutableDoubleBag asSynchronized()
asSynchronized
in interface MutableDoubleCollection
ImmutableDoubleBag toImmutable()
toImmutable
in interface DoubleBag
toImmutable
in interface MutableDoubleCollection
Copyright © 2004–2016. All rights reserved.