Class DoubleBooleanHashMap.KeysView
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.DoubleBooleanHashMap.KeysView
-
- All Implemented Interfaces:
DoubleIterable,LazyDoubleIterable,PrimitiveIterable
- Enclosing class:
- DoubleBooleanHashMap
private class DoubleBooleanHashMap.KeysView extends AbstractLazyDoubleIterable
-
-
Constructor Summary
Constructors Modifier Constructor Description privateKeysView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(DoublePredicate predicate)Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(DoublePredicate predicate)Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.voidappendString(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 givenAppendable.booleancontains(double key)Returns true if the value is contained in the DoubleIterable, and false if it is not.booleancontainsAll(double... keys)Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.booleancontainsAll(DoubleIterable source)Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.intcount(DoublePredicate predicate)Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.doubledetectIfNone(DoublePredicate predicate, double value)DoubleIteratordoubleIterator()Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.voideach(DoubleProcedure procedure)A synonym for forEach.<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)booleanisEmpty()Returns true if this iterable has zero items.doublemax()doublemin()booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.doublesum()double[]toArray()Converts the DoubleIterable to a primitive double array.MutableDoubleBagtoBag()Converts the DoubleIterable to a new MutableDoubleBag.MutableDoubleListtoList()Converts the DoubleIterable to a new MutableDoubleList.MutableDoubleSettoSet()Converts the DoubleIterable to a new MutableDoubleSet.double[]toSortedArray()-
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, noneSatisfy, reject, select, tap, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyDoubleIterable
-
notEmpty
public boolean notEmpty()
Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyDoubleIterable
-
size
public int size()
Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyDoubleIterable
-
contains
public boolean contains(double key)
Description copied from interface:DoubleIterableReturns true if the value is contained in the DoubleIterable, and false if it is not.- Specified by:
containsin interfaceDoubleIterable- Overrides:
containsin classAbstractLazyDoubleIterable
-
containsAll
public boolean containsAll(double... keys)
Description copied from interface:DoubleIterableReturns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAllin interfaceDoubleIterable- Overrides:
containsAllin classAbstractLazyDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
Description copied from interface:DoubleIterableReturns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAllin interfaceDoubleIterable- Overrides:
containsAllin classAbstractLazyDoubleIterable
-
doubleIterator
public DoubleIterator doubleIterator()
Description copied from interface:DoubleIterableReturns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.
-
each
public void each(DoubleProcedure procedure)
Description copied from interface:DoubleIterableA synonym for forEach.- Since:
- 7.0.
-
appendString
public void appendString(java.lang.Appendable appendable, java.lang.String start, java.lang.String separator, java.lang.String end)Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String, String, String).- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyDoubleIterable
-
count
public int count(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns a count of the number of elements in the DoubleIterable that return true for the specified predicate.- Specified by:
countin interfaceDoubleIterable- Overrides:
countin classAbstractLazyDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceDoubleIterable- Overrides:
anySatisfyin classAbstractLazyDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceDoubleIterable- Overrides:
allSatisfyin classAbstractLazyDoubleIterable
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double value)
- Specified by:
detectIfNonein interfaceDoubleIterable- Overrides:
detectIfNonein classAbstractLazyDoubleIterable
-
sum
public double sum()
- Specified by:
sumin interfaceDoubleIterable- Overrides:
sumin classAbstractLazyDoubleIterable
-
max
public double max()
- Specified by:
maxin interfaceDoubleIterable- Overrides:
maxin classAbstractLazyDoubleIterable
-
min
public double min()
- Specified by:
minin interfaceDoubleIterable- Overrides:
minin classAbstractLazyDoubleIterable
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArrayin interfaceDoubleIterable- Overrides:
toSortedArrayin classAbstractLazyDoubleIterable
-
toArray
public double[] toArray()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a primitive double array.- Specified by:
toArrayin interfaceDoubleIterable- Overrides:
toArrayin classAbstractLazyDoubleIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable- Overrides:
injectIntoin classAbstractLazyDoubleIterable
-
toList
public MutableDoubleList toList()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleList.- Specified by:
toListin interfaceDoubleIterable- Overrides:
toListin classAbstractLazyDoubleIterable
-
toSet
public MutableDoubleSet toSet()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSetin interfaceDoubleIterable- Overrides:
toSetin classAbstractLazyDoubleIterable
-
toBag
public MutableDoubleBag toBag()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBagin interfaceDoubleIterable- Overrides:
toBagin classAbstractLazyDoubleIterable
-
-