@NotThreadSafe public final class DoubleHashBag extends AbstractDoubleIterable implements org.eclipse.collections.api.bag.primitive.MutableDoubleBag, Externalizable
HashBag, and is memory-optimized for double primitives.
This file was automatically generated from template file primitiveHashBag.stg.| Constructor and Description |
|---|
DoubleHashBag() |
DoubleHashBag(double... elements) |
DoubleHashBag(DoubleHashBag bag) |
DoubleHashBag(org.eclipse.collections.api.DoubleIterable iterable) |
DoubleHashBag(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double item) |
boolean |
addAll(double... source) |
boolean |
addAll(org.eclipse.collections.api.DoubleIterable source) |
void |
addOccurrences(double item,
int occurrences) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
boolean |
contains(double value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
void |
each(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
boolean |
equals(Object otherBag) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure) |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
double |
max() |
double |
min() |
static DoubleHashBag |
newBag(org.eclipse.collections.api.bag.primitive.DoubleBag source) |
static DoubleHashBag |
newBag(org.eclipse.collections.api.DoubleIterable source) |
static DoubleHashBag |
newBag(int size) |
static DoubleHashBag |
newBagWith(double... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
notEmpty() |
int |
occurrencesOf(double item) |
void |
readExternal(ObjectInput in) |
DoubleHashBag |
reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
remove(double item) |
boolean |
removeAll(double... source) |
boolean |
removeAll(org.eclipse.collections.api.DoubleIterable source) |
boolean |
removeOccurrences(double item,
int occurrences) |
boolean |
retainAll(double... source) |
boolean |
retainAll(org.eclipse.collections.api.DoubleIterable source) |
DoubleHashBag |
select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
int |
size() |
int |
sizeDistinct() |
double |
sum() |
double[] |
toArray() |
org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag |
toImmutable() |
DoubleHashBag |
with(double element) |
DoubleHashBag |
with(double element1,
double element2) |
DoubleHashBag |
with(double element1,
double element2,
double element3) |
DoubleHashBag |
withAll(org.eclipse.collections.api.DoubleIterable iterable) |
DoubleHashBag |
without(double element) |
DoubleHashBag |
withoutAll(org.eclipse.collections.api.DoubleIterable iterable) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic DoubleHashBag()
public DoubleHashBag(int size)
public DoubleHashBag(org.eclipse.collections.api.DoubleIterable iterable)
public DoubleHashBag(double... elements)
public DoubleHashBag(DoubleHashBag bag)
public static DoubleHashBag newBag(int size)
public static DoubleHashBag newBagWith(double... source)
public static DoubleHashBag newBag(org.eclipse.collections.api.DoubleIterable source)
public static DoubleHashBag newBag(org.eclipse.collections.api.bag.primitive.DoubleBag source)
public boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterableisEmpty in class AbstractDoubleIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablenotEmpty in class AbstractDoubleIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.DoubleBagpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic DoubleHashBag with(double element)
with in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwith in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic DoubleHashBag with(double element1, double element2)
public DoubleHashBag with(double element1, double element2, double element3)
public DoubleHashBag withAll(org.eclipse.collections.api.DoubleIterable iterable)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic DoubleHashBag without(double element)
without in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic DoubleHashBag withoutAll(org.eclipse.collections.api.DoubleIterable iterable)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean contains(double value)
contains in interface org.eclipse.collections.api.DoubleIterablepublic int occurrencesOf(double item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.DoubleBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.DoubleBagpublic boolean add(double item)
add in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean remove(double item)
remove in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean addAll(double... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean addAll(org.eclipse.collections.api.DoubleIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean removeAll(double... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean removeAll(org.eclipse.collections.api.DoubleIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean retainAll(org.eclipse.collections.api.DoubleIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean retainAll(double... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic void addOccurrences(double item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagpublic boolean removeOccurrences(double item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEach in interface org.eclipse.collections.api.DoubleIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
each in interface org.eclipse.collections.api.DoubleIterablepublic DoubleHashBag select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.DoubleBagselect in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagselect in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionselect in interface org.eclipse.collections.api.DoubleIterablepublic DoubleHashBag reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.DoubleBagreject in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagreject in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionreject in interface org.eclipse.collections.api.DoubleIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.DoubleIterablepublic boolean equals(Object otherBag)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
count in interface org.eclipse.collections.api.DoubleIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.DoubleIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.DoubleIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.DoubleIterablepublic double detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone)
detectIfNone in interface org.eclipse.collections.api.DoubleIterablepublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.DoubleBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface org.eclipse.collections.api.DoubleIterablepublic double max()
max in interface org.eclipse.collections.api.DoubleIterablepublic double min()
min in interface org.eclipse.collections.api.DoubleIterablepublic double sum()
sum in interface org.eclipse.collections.api.DoubleIterablepublic double[] toArray()
toArray in interface org.eclipse.collections.api.DoubleIterablepublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.DoubleBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectiondoubleIterator in interface org.eclipse.collections.api.DoubleIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2018. All rights reserved.