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
- Since:
- 3.0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(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(Appendable appendable, String start, String separator, 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) 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.toBag()Converts the DoubleIterable to a new MutableDoubleBag.toList()Converts the DoubleIterable to a new MutableDoubleList.toSet()Converts the DoubleIterable to a new MutableDoubleSet.double[]Methods inherited from class 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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
Constructor Details
-
KeysView
private KeysView()
-
-
Method Details
-
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
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
Description copied from interface:DoubleIterableReturns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. -
each
-
appendString
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
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
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
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
- 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
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleList.- Specified by:
toListin interfaceDoubleIterable- Overrides:
toListin classAbstractLazyDoubleIterable
-
toSet
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSetin interfaceDoubleIterable- Overrides:
toSetin classAbstractLazyDoubleIterable
-
toBag
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBagin interfaceDoubleIterable- Overrides:
toBagin classAbstractLazyDoubleIterable
-