Class LazyByteIterableAdapter
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
org.eclipse.collections.impl.lazy.primitive.LazyByteIterableAdapter
- All Implemented Interfaces:
ByteIterable,LazyByteIterable,PrimitiveIterable
public class LazyByteIterableAdapter extends AbstractLazyByteIterable
This file was automatically generated from template file lazyPrimitiveIterableAdapter.stg.
- Since:
- 3.0
-
Constructor Summary
Constructors Constructor Description LazyByteIterableAdapter(ByteIterable delegate) -
Method Summary
Modifier and Type Method Description booleanallSatisfy(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)Prints a string representation of this collection onto the givenAppendable.voidappendString(Appendable appendable, String separator)Prints a string representation of this collection onto the givenAppendable.voidappendString(Appendable appendable, String start, String separator, String end)Prints a string representation of this collection onto the givenAppendable.doubleaverage()ByteIteratorbyteIterator()Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.booleancontains(byte value)Returns true if the value is contained in the ByteIterable, and false if it is not.booleancontainsAll(byte... source)Returns true if the 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 the 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 ifNone)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.StringmakeString()Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)and defaulting the separator parameter to the characters", "(comma and space).StringmakeString(String separator)Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to""(the empty String).StringmakeString(String start, String separator, String end)Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.bytemax()bytemaxIfEmpty(byte defaultValue)doublemedian()bytemin()byteminIfEmpty(byte defaultValue)booleannoneSatisfy(BytePredicate predicate)Returns true if none of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.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.MutableByteBagtoBag()Converts the ByteIterable to a new MutableByteBag.MutableByteListtoList()Converts the ByteIterable to a new MutableByteList.MutableByteSettoSet()Converts the ByteIterable to a new MutableByteSet.byte[]toSortedArray()MutableByteListtoSortedList()StringtoString()Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, reject, select, tapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ByteIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
byteIterator
Description copied from interface:ByteIterableReturns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style. -
each
Description copied from interface:ByteIterableA synonym for forEach.- Since:
- 7.0.
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyByteIterable
-
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
-
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
-
noneSatisfy
Description copied from interface:ByteIterableReturns true if none of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfyin interfaceByteIterable- Overrides:
noneSatisfyin 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
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)- Specified by:
minIfEmptyin interfaceByteIterable- Overrides:
minIfEmptyin classAbstractLazyByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)- Specified by:
maxIfEmptyin interfaceByteIterable- Overrides:
maxIfEmptyin classAbstractLazyByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable- Overrides:
averagein classAbstractLazyByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable- Overrides:
medianin classAbstractLazyByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable- Overrides:
toSortedArrayin classAbstractLazyByteIterable
-
toSortedList
- Specified by:
toSortedListin interfaceByteIterable- Overrides:
toSortedListin classAbstractLazyByteIterable
-
toArray
public byte[] toArray()Description copied from interface:ByteIterableConverts the ByteIterable to a primitive byte array.- Specified by:
toArrayin interfaceByteIterable- Overrides:
toArrayin classAbstractLazyByteIterable
-
toString
Description copied from interface:PrimitiveIterableReturns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLazyByteIterable- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)and defaulting the separator parameter to the characters", "(comma and space).- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyByteIterable- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection by delegating toPrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to""(the empty String).- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyByteIterable- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyByteIterable- Returns:
- a string representation of this collection.
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString().- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyByteIterable
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String).- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyByteIterable
-
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
-
contains
public boolean contains(byte value)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... source)Description copied from interface:ByteIterableReturns true if the 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 the 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
-
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
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceByteIterable- Overrides:
injectIntoin classAbstractLazyByteIterable
-