public final class DoubleHashSet extends AbstractDoubleSet implements com.gs.collections.api.set.primitive.MutableDoubleSet, java.io.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(com.gs.collections.api.DoubleIterable source) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
com.gs.collections.api.set.primitive.MutableDoubleSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableDoubleSet |
asUnmodifiable() |
void |
clear() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.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(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
detectIfNone(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone) |
com.gs.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
void |
each(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
com.gs.collections.api.set.primitive.DoubleSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function) |
double |
max() |
double |
min() |
static DoubleHashSet |
newSet(com.gs.collections.api.DoubleIterable source) |
static DoubleHashSet |
newSetWith(double... source) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
readExternal(java.io.ObjectInput in) |
com.gs.collections.api.set.primitive.MutableDoubleSet |
reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
remove(double value) |
boolean |
removeAll(double... source) |
boolean |
removeAll(com.gs.collections.api.DoubleIterable source) |
boolean |
retainAll(double... source) |
boolean |
retainAll(com.gs.collections.api.DoubleIterable source) |
DoubleHashSet |
select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
double[] |
toArray() |
com.gs.collections.api.set.primitive.ImmutableDoubleSet |
toImmutable()
Returns an immutable copy of this set.
|
DoubleHashSet |
with(double element) |
DoubleHashSet |
withAll(com.gs.collections.api.DoubleIterable elements) |
DoubleHashSet |
without(double element) |
DoubleHashSet |
withoutAll(com.gs.collections.api.DoubleIterable elements) |
void |
writeExternal(java.io.ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic DoubleHashSet()
public DoubleHashSet(int initialCapacity)
public DoubleHashSet(double... elements)
public DoubleHashSet(DoubleHashSet set)
public static DoubleHashSet newSet(com.gs.collections.api.DoubleIterable source)
public static DoubleHashSet newSetWith(double... source)
public int hashCode()
com.gs.collections.api.set.primitive.DoubleSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.DoubleSethashCode in class AbstractDoubleSetpublic int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterablepublic boolean add(double element)
add in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean addAll(double... source)
addAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean addAll(com.gs.collections.api.DoubleIterable source)
addAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean remove(double value)
remove in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean removeAll(com.gs.collections.api.DoubleIterable source)
removeAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean removeAll(double... source)
removeAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean retainAll(com.gs.collections.api.DoubleIterable source)
retainAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionCollection.retainAll(Collection)public boolean retainAll(double... source)
retainAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionCollection.retainAll(Collection)public void clear()
clear in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionpublic DoubleHashSet with(double element)
with in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwith in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic DoubleHashSet without(double element)
without in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithout in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic DoubleHashSet withAll(com.gs.collections.api.DoubleIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic DoubleHashSet withoutAll(com.gs.collections.api.DoubleIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic com.gs.collections.api.set.primitive.MutableDoubleSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic com.gs.collections.api.set.primitive.MutableDoubleSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic com.gs.collections.api.set.primitive.ImmutableDoubleSet toImmutable()
com.gs.collections.api.set.primitive.MutableDoubleSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in interface com.gs.collections.api.set.primitive.DoubleSettoImmutable in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic com.gs.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectiondoubleIterator in interface com.gs.collections.api.DoubleIterablepublic double[] toArray()
toArray in interface com.gs.collections.api.DoubleIterablepublic boolean contains(double value)
contains in interface com.gs.collections.api.DoubleIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEach in interface com.gs.collections.api.DoubleIterablepublic void each(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
each in interface com.gs.collections.api.DoubleIterablepublic DoubleHashSet select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionselect in interface com.gs.collections.api.DoubleIterableselect in interface com.gs.collections.api.set.primitive.DoubleSetselect in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic com.gs.collections.api.set.primitive.MutableDoubleSet reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionreject in interface com.gs.collections.api.DoubleIterablereject in interface com.gs.collections.api.set.primitive.DoubleSetreject in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface com.gs.collections.api.DoubleIterablecollect in interface com.gs.collections.api.set.primitive.DoubleSetcollect in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic double detectIfNone(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone)
detectIfNone in interface com.gs.collections.api.DoubleIterablepublic int count(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
count in interface com.gs.collections.api.DoubleIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
anySatisfy in interface com.gs.collections.api.DoubleIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
allSatisfy in interface com.gs.collections.api.DoubleIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
noneSatisfy in interface com.gs.collections.api.DoubleIterablepublic double sum()
sum in interface com.gs.collections.api.DoubleIterablepublic double max()
max in interface com.gs.collections.api.DoubleIterablepublic double min()
min in interface com.gs.collections.api.DoubleIterablepublic com.gs.collections.api.set.primitive.DoubleSet freeze()
com.gs.collections.api.set.primitive.MutableDoubleSetfreeze in interface com.gs.collections.api.set.primitive.DoubleSetfreeze in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.DoubleIterablepublic void compact()