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