Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.lazy.primitive

public Class CollectByteIterable<T>

extends AbstractLazyByteIterable
Class Inheritance
Imports
java.util.Arrays, .Iterator, org.eclipse.collections.api.ByteIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableByteBag, org.eclipse.collections.api.block.function.primitive.ByteFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.block.procedure.Procedure2, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.api.factory.primitive.ByteBags, .ByteLists, .ByteSets, org.eclipse.collections.api.iterator.ByteIterator, org.eclipse.collections.api.list.primitive.MutableByteList, org.eclipse.collections.api.set.primitive.MutableByteSet

This file was automatically generated from template file collectPrimitiveIterable.stg.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final CollectByteIterable.ByteFunctionToProcedure<T>
private final ByteFunction<? super T>
private final LazyIterable<T>

Constructor Summary

AccessConstructor and Description
public
CollectByteIterable(LazyIterable<T> adapted, ByteFunction<? super T> function)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(final BytePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.allSatisfy.

Implements org.eclipse.collections.api.ByteIterable.allSatisfy.

Returns true if all of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(final BytePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.anySatisfy.

Implements org.eclipse.collections.api.ByteIterable.anySatisfy.

Returns true if any of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.

public ByteIterator
byteIterator()

Implements org.eclipse.collections.api.ByteIterable.byteIterator.

Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.

public boolean
containsAll(byte... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.containsAll.

Overrides default org.eclipse.collections.api.ByteIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the ByteIterable, and false if they are not.

public boolean
containsAll(ByteIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.containsAll.

Overrides default org.eclipse.collections.api.ByteIterable.containsAll.

Returns true if all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.

public int
count(final BytePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.count.

Implements org.eclipse.collections.api.ByteIterable.count.

Returns a count of the number of elements in the ByteIterable that return true for the specified predicate.

public void
each(ByteProcedure procedure)

Implements org.eclipse.collections.api.ByteIterable.each.

A synonym for forEach.

public boolean
public boolean
public int
public byte[]
public MutableByteBag
public MutableByteList
public MutableByteSet
public byte[]
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedListtoString

Field Detail

byteFunctionToProcedureback to summary
private final CollectByteIterable.ByteFunctionToProcedure<T> byteFunctionToProcedure
functionback to summary
private final ByteFunction<? super T> function
iterableback to summary
private final LazyIterable<T> iterable

Constructor Detail

CollectByteIterableback to summary
public CollectByteIterable(LazyIterable<T> adapted, ByteFunction<? super T> function)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(final BytePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.allSatisfy.

Implements org.eclipse.collections.api.ByteIterable.allSatisfy.

Doc from org.eclipse.collections.api.ByteIterable.allSatisfy.

Returns true if all of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
anySatisfyback to summary
public boolean anySatisfy(final BytePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.anySatisfy.

Implements org.eclipse.collections.api.ByteIterable.anySatisfy.

Doc from org.eclipse.collections.api.ByteIterable.anySatisfy.

Returns true if any of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
byteIteratorback to summary
public ByteIterator byteIterator()

Implements org.eclipse.collections.api.ByteIterable.byteIterator.

Doc from org.eclipse.collections.api.ByteIterable.byteIterator.

Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.

Annotations
@Override
containsAllback to summary
public boolean containsAll(byte... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.containsAll.

Overrides default org.eclipse.collections.api.ByteIterable.containsAll.

Doc from org.eclipse.collections.api.ByteIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the ByteIterable, and false if they are not.

Annotations
@Override
containsAllback to summary
public boolean containsAll(ByteIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.containsAll.

Overrides default org.eclipse.collections.api.ByteIterable.containsAll.

Doc from org.eclipse.collections.api.ByteIterable.containsAll.

Returns true if all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.

Annotations
@Override
countback to summary
public int count(final BytePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.count.

Implements org.eclipse.collections.api.ByteIterable.count.

Doc from org.eclipse.collections.api.ByteIterable.count.

Returns a count of the number of elements in the ByteIterable that return true for the specified predicate.

Annotations
@Override
eachback to summary
public void each(ByteProcedure procedure)

Implements org.eclipse.collections.api.ByteIterable.each.

Doc from org.eclipse.collections.api.ByteIterable.each.

A synonym for forEach.

Annotations
@Override
Since
7.0.
isEmptyback to summary
public boolean isEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.isEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

Annotations
@Override
notEmptyback to summary
public boolean notEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.notEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

Annotations
@Override
sizeback to summary
public int size()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.size.

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Doc from org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
toArrayback to summary
public byte[] toArray()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.toArray.

Implements org.eclipse.collections.api.ByteIterable.toArray.

Doc from org.eclipse.collections.api.ByteIterable.toArray.

Converts the ByteIterable to a primitive byte array.

Annotations
@Override
toBagback to summary
public MutableByteBag toBag()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.toBag.

Implements org.eclipse.collections.api.ByteIterable.toBag.

Doc from org.eclipse.collections.api.ByteIterable.toBag.

Converts the ByteIterable to a new MutableByteBag.

Annotations
@Override
toListback to summary
public MutableByteList toList()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.toList.

Implements org.eclipse.collections.api.ByteIterable.toList.

Doc from org.eclipse.collections.api.ByteIterable.toList.

Converts the ByteIterable to a new MutableByteList.

Annotations
@Override
toSetback to summary
public MutableByteSet toSet()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.toSet.

Implements org.eclipse.collections.api.ByteIterable.toSet.

Doc from org.eclipse.collections.api.ByteIterable.toSet.

Converts the ByteIterable to a new MutableByteSet.

Annotations
@Override
toSortedArrayback to summary
public byte[] toSortedArray()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable.toSortedArray.

Implements org.eclipse.collections.api.ByteIterable.toSortedArray.

Annotations
@Override
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class CollectByteIterable.ByteFunctionToProcedure<T>

extends Object
implements Procedure2<T, ByteProcedure>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.CollectByteIterable.ByteFunctionToProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure2, java.io.Serializable, java.util.function.BiConsumer

Field Summary

Modifier and TypeField and Description
private final ByteFunction<? super T>
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

functionback to summary
private final ByteFunction<? super T> function
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ByteFunctionToProcedureback to summary
private ByteFunctionToProcedure(ByteFunction<? super T> function)

Method Detail

valueback to summary
public void value(T each, ByteProcedure procedure)

Implements org.eclipse.collections.api.block.procedure.Procedure2.value.

Annotations
@Override