Class DoubleHashSet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
org.eclipse.collections.impl.set.primitive.AbstractDoubleSet
org.eclipse.collections.impl.set.mutable.primitive.DoubleHashSet
- All Implemented Interfaces:
Externalizable,Serializable,MutableDoubleCollection,DoubleIterable,PrimitiveIterable,DoubleSet,MutableDoubleSet
This file was automatically generated from template file primitiveHashSet.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleHashSet(double... elements) DoubleHashSet(int initialCapacity) DoubleHashSet(DoubleIterable elements) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(double element) booleanaddAll(double... source) booleanaddAll(DoubleIterable source) booleanallSatisfy(DoublePredicate predicate) booleananySatisfy(DoublePredicate predicate) voidappendString(Appendable appendable, String start, String separator, String end) boxed()chunk(int size) voidclear()<V> MutableSet<V>collect(DoubleToObjectFunction<? extends V> function) <V,R extends Collection<V>>
Rcollect(DoubleToObjectFunction<? extends V> function, R target) voidcompact()Deprecated.booleancontains(double value) intcount(DoublePredicate predicate) doubledetectIfNone(DoublePredicate predicate, double ifNone) voideach(DoubleProcedure procedure) freeze()inthashCode()<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) doublemax()doublemin()newEmpty()Creates a new empty DoubleHashSet.static DoubleHashSetnewSet(DoubleIterable source) static DoubleHashSetnewSetWith(double... source) voidreject(DoublePredicate predicate) <R extends MutableDoubleCollection>
Rreject(DoublePredicate predicate, R target) booleanremove(double value) booleanremoveAll(double... source) booleanremoveAll(DoubleIterable source) booleanretainAll(double... source) booleanretainAll(DoubleIterable source) select(DoublePredicate predicate) <R extends MutableDoubleCollection>
Rselect(DoublePredicate predicate, R target) intsize()doublesum()double[]toArray()double[]toArray(double[] array) booleanwith(double element) withAll(DoubleIterable elements) without(double element) withoutAll(DoubleIterable elements) voidMethods inherited from class org.eclipse.collections.impl.set.primitive.AbstractDoubleSet
cartesianProduct, equalsMethods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.DoubleIterable
asLazy, average, averageIfEmpty, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.DoubleSet
cartesianProduct, equals, isProperSubsetOf, isSubsetOf, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
removeIfMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableDoubleSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toString
-
Constructor Details
-
DoubleHashSet
public DoubleHashSet() -
DoubleHashSet
public DoubleHashSet(int initialCapacity) -
DoubleHashSet
public DoubleHashSet(double... elements) -
DoubleHashSet
-
DoubleHashSet
-
-
Method Details
-
boxed
- Specified by:
boxedin interfaceMutableDoubleSet
-
newSet
-
newSetWith
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleSet- Specified by:
hashCodein classAbstractDoubleSet
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
add
public boolean add(double element) - Specified by:
addin interfaceMutableDoubleCollection
-
addAll
public boolean addAll(double... source) - Specified by:
addAllin interfaceMutableDoubleCollection
-
addAll
- Specified by:
addAllin interfaceMutableDoubleCollection
-
remove
public boolean remove(double value) - Specified by:
removein interfaceMutableDoubleCollection
-
removeAll
- Specified by:
removeAllin interfaceMutableDoubleCollection
-
removeAll
public boolean removeAll(double... source) - Specified by:
removeAllin interfaceMutableDoubleCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableDoubleCollection
-
retainAll
public boolean retainAll(double... source) - Specified by:
retainAllin interfaceMutableDoubleCollection
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleCollection
-
with
- Specified by:
within interfaceMutableDoubleCollection- Specified by:
within interfaceMutableDoubleSet
-
without
- Specified by:
withoutin interfaceMutableDoubleCollection- Specified by:
withoutin interfaceMutableDoubleSet
-
withAll
- Specified by:
withAllin interfaceMutableDoubleCollection- Specified by:
withAllin interfaceMutableDoubleSet
-
withoutAll
- Specified by:
withoutAllin interfaceMutableDoubleCollection- Specified by:
withoutAllin interfaceMutableDoubleSet
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection- Specified by:
asUnmodifiablein interfaceMutableDoubleSet
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleCollection- Specified by:
asSynchronizedin interfaceMutableDoubleSet
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleSet- Specified by:
toImmutablein interfaceMutableDoubleCollection- Specified by:
toImmutablein interfaceMutableDoubleSet
-
doubleIterator
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleCollection
-
toArray
public double[] toArray()- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] array) - Specified by:
toArrayin interfaceDoubleIterable
-
contains
public boolean contains(double value) - Specified by:
containsin interfaceDoubleIterable
-
each
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleSet- Specified by:
selectin interfaceMutableDoubleCollection- Specified by:
selectin interfaceMutableDoubleSet
-
select
- Specified by:
selectin interfaceDoubleIterable- Since:
- 8.1.
-
reject
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleSet- Specified by:
rejectin interfaceMutableDoubleCollection- Specified by:
rejectin interfaceMutableDoubleSet
-
reject
- Specified by:
rejectin interfaceDoubleIterable- Since:
- 8.1.
-
collect
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleSet- Specified by:
collectin interfaceMutableDoubleCollection- Specified by:
collectin interfaceMutableDoubleSet
-
collect
public <V,R extends Collection<V>> R collect(DoubleToObjectFunction<? extends V> function, R target) - Specified by:
collectin interfaceDoubleIterable- Since:
- 8.1.
-
detectIfNone
- Specified by:
detectIfNonein interfaceDoubleIterable
-
count
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceDoubleIterable
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable
-
freeze
- Specified by:
freezein interfaceDoubleSet- Specified by:
freezein interfaceMutableDoubleSet
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
- Specified by:
chunkin interfaceDoubleIterable
-
newEmpty
Creates a new empty DoubleHashSet.- Specified by:
newEmptyin interfaceMutableDoubleCollection- Specified by:
newEmptyin interfaceMutableDoubleSet- Since:
- 9.2.
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
trimToSize()instead