Class LongBooleanHashMap.KeysView
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable
org.eclipse.collections.impl.map.mutable.primitive.LongBooleanHashMap.KeysView
- All Implemented Interfaces:
LazyLongIterable
,LongIterable
,PrimitiveIterable
- Enclosing class:
LongBooleanHashMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allSatisfy
(LongPredicate predicate) Returns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy
(LongPredicate predicate) Returns true if any of the elements in the LongIterable return true for the specified predicate, otherwise returns false.void
appendString
(Appendable appendable, String start, String separator, String end) Prints a string representation of this collection onto the givenAppendable
.boolean
contains
(long key) Returns true if the value is contained in the LongIterable, and false if it is not.boolean
containsAll
(long... keys) Returns true if all of the values specified in the source array are contained in the LongIterable, and false if they are not.boolean
containsAll
(LongIterable source) Returns true if all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.int
count
(LongPredicate predicate) Returns a count of the number of elements in the LongIterable that return true for the specified predicate.long
detectIfNone
(LongPredicate predicate, long value) void
each
(LongProcedure procedure) A synonym for forEach.<T> T
injectInto
(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) boolean
isEmpty()
Returns true if this iterable has zero items.Returns a primitive iterator that can be used to iterate over the LongIterable in an imperative style.long
max()
long
min()
boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.long
sum()
long[]
toArray()
Converts the LongIterable to a primitive long array.toBag()
Converts the LongIterable to a new MutableLongBag.toList()
Converts the LongIterable to a new MutableLongList.toSet()
Converts the LongIterable to a new MutableLongSet.long[]
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable
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.LongIterable
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:PrimitiveIterable
Returns true if this iterable has zero items.- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyLongIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyLongIterable
-
size
public int size()Description copied from interface:PrimitiveIterable
Returns the number of items in this iterable.- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyLongIterable
-
contains
public boolean contains(long key) Description copied from interface:LongIterable
Returns true if the value is contained in the LongIterable, and false if it is not.- Specified by:
contains
in interfaceLongIterable
- Overrides:
contains
in classAbstractLazyLongIterable
-
containsAll
public boolean containsAll(long... keys) Description copied from interface:LongIterable
Returns true if all of the values specified in the source array are contained in the LongIterable, and false if they are not.- Specified by:
containsAll
in interfaceLongIterable
- Overrides:
containsAll
in classAbstractLazyLongIterable
-
containsAll
Description copied from interface:LongIterable
Returns true if all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.- Specified by:
containsAll
in interfaceLongIterable
- Overrides:
containsAll
in classAbstractLazyLongIterable
-
longIterator
Description copied from interface:LongIterable
Returns a primitive iterator that can be used to iterate over the LongIterable in an imperative style. -
each
Description copied from interface:LongIterable
A synonym for forEach.- Since:
- 7.0.
-
appendString
Description copied from interface:PrimitiveIterable
Prints a string representation of this collection onto the givenAppendable
. Prints the string returned byPrimitiveIterable.makeString(String, String, String)
.- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyLongIterable
-
count
Description copied from interface:LongIterable
Returns a count of the number of elements in the LongIterable that return true for the specified predicate.- Specified by:
count
in interfaceLongIterable
- Overrides:
count
in classAbstractLazyLongIterable
-
anySatisfy
Description copied from interface:LongIterable
Returns true if any of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceLongIterable
- Overrides:
anySatisfy
in classAbstractLazyLongIterable
-
allSatisfy
Description copied from interface:LongIterable
Returns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceLongIterable
- Overrides:
allSatisfy
in classAbstractLazyLongIterable
-
detectIfNone
- Specified by:
detectIfNone
in interfaceLongIterable
- Overrides:
detectIfNone
in classAbstractLazyLongIterable
-
sum
public long sum()- Specified by:
sum
in interfaceLongIterable
- Overrides:
sum
in classAbstractLazyLongIterable
-
max
public long max()- Specified by:
max
in interfaceLongIterable
- Overrides:
max
in classAbstractLazyLongIterable
-
min
public long min()- Specified by:
min
in interfaceLongIterable
- Overrides:
min
in classAbstractLazyLongIterable
-
toSortedArray
public long[] toSortedArray()- Specified by:
toSortedArray
in interfaceLongIterable
- Overrides:
toSortedArray
in classAbstractLazyLongIterable
-
toArray
public long[] toArray()Description copied from interface:LongIterable
Converts the LongIterable to a primitive long array.- Specified by:
toArray
in interfaceLongIterable
- Overrides:
toArray
in classAbstractLazyLongIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) - Specified by:
injectInto
in interfaceLongIterable
- Overrides:
injectInto
in classAbstractLazyLongIterable
-
toList
Description copied from interface:LongIterable
Converts the LongIterable to a new MutableLongList.- Specified by:
toList
in interfaceLongIterable
- Overrides:
toList
in classAbstractLazyLongIterable
-
toSet
Description copied from interface:LongIterable
Converts the LongIterable to a new MutableLongSet.- Specified by:
toSet
in interfaceLongIterable
- Overrides:
toSet
in classAbstractLazyLongIterable
-
toBag
Description copied from interface:LongIterable
Converts the LongIterable to a new MutableLongBag.- Specified by:
toBag
in interfaceLongIterable
- Overrides:
toBag
in classAbstractLazyLongIterable
-