public final class DoubleHashSet extends AbstractDoubleSet implements org.eclipse.collections.api.set.primitive.MutableDoubleSet, Externalizable
| Constructor and Description |
|---|
DoubleHashSet() |
DoubleHashSet(double... elements) |
DoubleHashSet(DoubleHashSet set) |
DoubleHashSet(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double element) |
boolean |
addAll(double... source) |
boolean |
addAll(org.eclipse.collections.api.DoubleIterable source) |
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.set.primitive.MutableDoubleSet |
asSynchronized() |
org.eclipse.collections.api.set.primitive.MutableDoubleSet |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.set.MutableSet<V> |
collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
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) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
org.eclipse.collections.api.set.primitive.DoubleSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function) |
double |
max() |
double |
min() |
static DoubleHashSet |
newSet(org.eclipse.collections.api.DoubleIterable source) |
static DoubleHashSet |
newSetWith(double... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.set.primitive.MutableDoubleSet |
reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
remove(double value) |
boolean |
removeAll(double... source) |
boolean |
removeAll(org.eclipse.collections.api.DoubleIterable source) |
boolean |
retainAll(double... source) |
boolean |
retainAll(org.eclipse.collections.api.DoubleIterable source) |
DoubleHashSet |
select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
int |
size() |
double |
sum() |
double[] |
toArray() |
org.eclipse.collections.api.set.primitive.ImmutableDoubleSet |
toImmutable() |
DoubleHashSet |
with(double element) |
DoubleHashSet |
withAll(org.eclipse.collections.api.DoubleIterable elements) |
DoubleHashSet |
without(double element) |
DoubleHashSet |
withoutAll(org.eclipse.collections.api.DoubleIterable elements) |
void |
writeExternal(ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic DoubleHashSet()
public DoubleHashSet(int initialCapacity)
public DoubleHashSet(double... elements)
public DoubleHashSet(DoubleHashSet set)
public static DoubleHashSet newSet(org.eclipse.collections.api.DoubleIterable source)
public static DoubleHashSet newSetWith(double... source)
public int hashCode()
hashCode in interface org.eclipse.collections.api.set.primitive.DoubleSethashCode in class AbstractDoubleSetpublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean add(double element)
add 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 remove(double value)
remove 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 removeAll(double... 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 clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic DoubleHashSet with(double element)
with in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwith in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic DoubleHashSet without(double element)
without in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithout in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic DoubleHashSet withAll(org.eclipse.collections.api.DoubleIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithAll in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic DoubleHashSet withoutAll(org.eclipse.collections.api.DoubleIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic org.eclipse.collections.api.set.primitive.MutableDoubleSet asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic org.eclipse.collections.api.set.primitive.MutableDoubleSet asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic org.eclipse.collections.api.set.primitive.ImmutableDoubleSet toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in interface org.eclipse.collections.api.set.primitive.DoubleSettoImmutable in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectiondoubleIterator in interface org.eclipse.collections.api.DoubleIterablepublic double[] toArray()
toArray in interface org.eclipse.collections.api.DoubleIterablepublic boolean contains(double value)
contains in interface org.eclipse.collections.api.DoubleIterablepublic 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 DoubleHashSet select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionselect in interface org.eclipse.collections.api.DoubleIterableselect in interface org.eclipse.collections.api.set.primitive.DoubleSetselect in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic org.eclipse.collections.api.set.primitive.MutableDoubleSet reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionreject in interface org.eclipse.collections.api.DoubleIterablereject in interface org.eclipse.collections.api.set.primitive.DoubleSetreject in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic <V> org.eclipse.collections.api.set.MutableSet<V> collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface org.eclipse.collections.api.DoubleIterablecollect in interface org.eclipse.collections.api.set.primitive.DoubleSetcollect in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic double detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone)
detectIfNone in interface org.eclipse.collections.api.DoubleIterablepublic 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 sum()
sum 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 org.eclipse.collections.api.set.primitive.DoubleSet freeze()
freeze in interface org.eclipse.collections.api.set.primitive.DoubleSetfreeze in interface org.eclipse.collections.api.set.primitive.MutableDoubleSetpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic <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 void compact()
Copyright © 2004–2018. All rights reserved.