Class IntBooleanHashMap.KeysView
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable
org.eclipse.collections.impl.map.mutable.primitive.IntBooleanHashMap.KeysView
- All Implemented Interfaces:
IntIterable
,LazyIntIterable
,PrimitiveIterable
- Enclosing class:
IntBooleanHashMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allSatisfy
(IntPredicate predicate) Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy
(IntPredicate predicate) Returns true if any of the elements in the IntIterable 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
(int key) Returns true if the value is contained in the IntIterable, and false if it is not.boolean
containsAll
(int... keys) Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.boolean
containsAll
(IntIterable source) Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.int
count
(IntPredicate predicate) Returns a count of the number of elements in the IntIterable that return true for the specified predicate.int
detectIfNone
(IntPredicate predicate, int value) void
each
(IntProcedure procedure) A synonym for forEach.<T> T
injectInto
(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function) Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.boolean
isEmpty()
Returns true if this iterable has zero items.int
max()
int
min()
boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.long
sum()
int[]
toArray()
Converts the IntIterable to a primitive int array.toBag()
Converts the IntIterable to a new MutableIntBag.toList()
Converts the IntIterable to a new MutableIntList.toSet()
Converts the IntIterable to a new MutableIntSet.int[]
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable
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.IntIterable
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 classAbstractLazyIntIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyIntIterable
-
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 classAbstractLazyIntIterable
-
contains
public boolean contains(int key) Description copied from interface:IntIterable
Returns true if the value is contained in the IntIterable, and false if it is not.- Specified by:
contains
in interfaceIntIterable
- Overrides:
contains
in classAbstractLazyIntIterable
-
containsAll
public boolean containsAll(int... keys) Description copied from interface:IntIterable
Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.- Specified by:
containsAll
in interfaceIntIterable
- Overrides:
containsAll
in classAbstractLazyIntIterable
-
containsAll
Description copied from interface:IntIterable
Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.- Specified by:
containsAll
in interfaceIntIterable
- Overrides:
containsAll
in classAbstractLazyIntIterable
-
intIterator
Description copied from interface:IntIterable
Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style. -
each
Description copied from interface:IntIterable
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 classAbstractLazyIntIterable
-
count
Description copied from interface:IntIterable
Returns a count of the number of elements in the IntIterable that return true for the specified predicate.- Specified by:
count
in interfaceIntIterable
- Overrides:
count
in classAbstractLazyIntIterable
-
anySatisfy
Description copied from interface:IntIterable
Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceIntIterable
- Overrides:
anySatisfy
in classAbstractLazyIntIterable
-
allSatisfy
Description copied from interface:IntIterable
Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceIntIterable
- Overrides:
allSatisfy
in classAbstractLazyIntIterable
-
detectIfNone
- Specified by:
detectIfNone
in interfaceIntIterable
- Overrides:
detectIfNone
in classAbstractLazyIntIterable
-
sum
public long sum()- Specified by:
sum
in interfaceIntIterable
- Overrides:
sum
in classAbstractLazyIntIterable
-
max
public int max()- Specified by:
max
in interfaceIntIterable
- Overrides:
max
in classAbstractLazyIntIterable
-
min
public int min()- Specified by:
min
in interfaceIntIterable
- Overrides:
min
in classAbstractLazyIntIterable
-
toSortedArray
public int[] toSortedArray()- Specified by:
toSortedArray
in interfaceIntIterable
- Overrides:
toSortedArray
in classAbstractLazyIntIterable
-
toArray
public int[] toArray()Description copied from interface:IntIterable
Converts the IntIterable to a primitive int array.- Specified by:
toArray
in interfaceIntIterable
- Overrides:
toArray
in classAbstractLazyIntIterable
-
injectInto
- Specified by:
injectInto
in interfaceIntIterable
- Overrides:
injectInto
in classAbstractLazyIntIterable
-
toList
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntList.- Specified by:
toList
in interfaceIntIterable
- Overrides:
toList
in classAbstractLazyIntIterable
-
toSet
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntSet.- Specified by:
toSet
in interfaceIntIterable
- Overrides:
toSet
in classAbstractLazyIntIterable
-
toBag
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntBag.- Specified by:
toBag
in interfaceIntIterable
- Overrides:
toBag
in classAbstractLazyIntIterable
-