Class ByteBooleanHashMap.KeysView
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
org.eclipse.collections.impl.map.mutable.primitive.ByteBooleanHashMap.KeysView
- All Implemented Interfaces:
ByteIterable, LazyByteIterable, PrimitiveIterable
- Enclosing class:
ByteBooleanHashMap
- Since:
- 3.0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(BytePredicate predicate) Returns true if all of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(BytePredicate predicate) Returns true if any of the elements in the ByteIterable 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.Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.booleancontains(byte key) Returns true if the value is contained in the ByteIterable, and false if it is not.booleancontainsAll(byte... keys) Returns true if all of the values specified in the source array are contained in the ByteIterable, and false if they are not.booleancontainsAll(ByteIterable source) Returns true if all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.intcount(BytePredicate predicate) Returns a count of the number of elements in the ByteIterable that return true for the specified predicate.bytedetectIfNone(BytePredicate predicate, byte value) voideach(ByteProcedure procedure) A synonym for forEach.<T> TinjectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) booleanisEmpty()Returns true if this iterable has zero items.bytemax()bytemin()booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.longsum()byte[]toArray()Converts the ByteIterable to a primitive byte array.toBag()Converts the ByteIterable to a new MutableByteBag.toList()Converts the ByteIterable to a new MutableByteList.toSet()Converts the ByteIterable to a new MutableByteSet.byte[]Methods inherited from class AbstractLazyByteIterable
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 ByteIterable
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 classAbstractLazyByteIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyByteIterable
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyByteIterable
-
contains
public boolean contains(byte key) Description copied from interface:ByteIterableReturns true if the value is contained in the ByteIterable, and false if it is not.- Specified by:
containsin interfaceByteIterable- Overrides:
containsin classAbstractLazyByteIterable
-
containsAll
public boolean containsAll(byte... keys) Description copied from interface:ByteIterableReturns true if all of the values specified in the source array are contained in the ByteIterable, and false if they are not.- Specified by:
containsAllin interfaceByteIterable- Overrides:
containsAllin classAbstractLazyByteIterable
-
containsAll
Description copied from interface:ByteIterableReturns true if all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.- Specified by:
containsAllin interfaceByteIterable- Overrides:
containsAllin classAbstractLazyByteIterable
-
byteIterator
Description copied from interface:ByteIterableReturns a primitive iterator that can be used to iterate over the ByteIterable 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 classAbstractLazyByteIterable
-
count
Description copied from interface:ByteIterableReturns a count of the number of elements in the ByteIterable that return true for the specified predicate.- Specified by:
countin interfaceByteIterable- Overrides:
countin classAbstractLazyByteIterable
-
anySatisfy
Description copied from interface:ByteIterableReturns true if any of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceByteIterable- Overrides:
anySatisfyin classAbstractLazyByteIterable
-
allSatisfy
Description copied from interface:ByteIterableReturns true if all of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceByteIterable- Overrides:
allSatisfyin classAbstractLazyByteIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceByteIterable- Overrides:
detectIfNonein classAbstractLazyByteIterable
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable- Overrides:
sumin classAbstractLazyByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable- Overrides:
maxin classAbstractLazyByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable- Overrides:
minin classAbstractLazyByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable- Overrides:
toSortedArrayin classAbstractLazyByteIterable
-
toArray
public byte[] toArray()Description copied from interface:ByteIterableConverts the ByteIterable to a primitive byte array.- Specified by:
toArrayin interfaceByteIterable- Overrides:
toArrayin classAbstractLazyByteIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceByteIterable- Overrides:
injectIntoin classAbstractLazyByteIterable
-
toList
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteList.- Specified by:
toListin interfaceByteIterable- Overrides:
toListin classAbstractLazyByteIterable
-
toSet
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteSet.- Specified by:
toSetin interfaceByteIterable- Overrides:
toSetin classAbstractLazyByteIterable
-
toBag
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteBag.- Specified by:
toBagin interfaceByteIterable- Overrides:
toBagin classAbstractLazyByteIterable
-