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

public Class CollectCharIterable<T>

extends AbstractLazyCharIterable
Class Inheritance
Imports
java.util.Arrays, .Iterator, org.eclipse.collections.api.CharIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableCharBag, org.eclipse.collections.api.block.function.primitive.CharFunction, org.eclipse.collections.api.block.predicate.primitive.CharPredicate, org.eclipse.collections.api.block.procedure.Procedure2, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, org.eclipse.collections.api.factory.primitive.CharBags, .CharLists, .CharSets, org.eclipse.collections.api.iterator.CharIterator, org.eclipse.collections.api.list.primitive.MutableCharList, org.eclipse.collections.api.set.primitive.MutableCharSet

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 CollectCharIterable.CharFunctionToProcedure<T>
private final CharFunction<? super T>
private final LazyIterable<T>

Constructor Summary

AccessConstructor and Description
public
CollectCharIterable(LazyIterable<T> adapted, CharFunction<? super T> function)

Method Summary

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

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

Implements org.eclipse.collections.api.CharIterable.allSatisfy.

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

public boolean
anySatisfy(final CharPredicate predicate)

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

Implements org.eclipse.collections.api.CharIterable.anySatisfy.

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

public CharIterator
charIterator()

Implements org.eclipse.collections.api.CharIterable.charIterator.

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

public boolean
containsAll(char... source)

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

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

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

public boolean
containsAll(CharIterable source)

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

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

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

public int
count(final CharPredicate predicate)

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

Implements org.eclipse.collections.api.CharIterable.count.

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

public void
each(CharProcedure procedure)

Implements org.eclipse.collections.api.CharIterable.each.

A synonym for forEach.

public boolean
public boolean
public int
public char[]
public MutableCharBag
public MutableCharList
public MutableCharSet
public char[]
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyCharIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedListtoString

Field Detail

charFunctionToProcedureback to summary
private final CollectCharIterable.CharFunctionToProcedure<T> charFunctionToProcedure
functionback to summary
private final CharFunction<? super T> function
iterableback to summary
private final LazyIterable<T> iterable

Constructor Detail

CollectCharIterableback to summary
public CollectCharIterable(LazyIterable<T> adapted, CharFunction<? super T> function)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(final CharPredicate predicate)

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

Implements org.eclipse.collections.api.CharIterable.allSatisfy.

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

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

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

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

Implements org.eclipse.collections.api.CharIterable.anySatisfy.

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

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

Annotations
@Override
charIteratorback to summary
public CharIterator charIterator()

Implements org.eclipse.collections.api.CharIterable.charIterator.

Doc from org.eclipse.collections.api.CharIterable.charIterator.

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

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

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

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

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

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

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

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

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

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

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

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

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

Implements org.eclipse.collections.api.CharIterable.count.

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

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

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

Implements org.eclipse.collections.api.CharIterable.each.

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

A synonym for forEach.

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

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyCharIterable.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.AbstractLazyCharIterable.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.AbstractLazyCharIterable.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 char[] toArray()

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

Implements org.eclipse.collections.api.CharIterable.toArray.

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

Converts the CharIterable to a primitive char array.

Annotations
@Override
toBagback to summary
public MutableCharBag toBag()

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

Implements org.eclipse.collections.api.CharIterable.toBag.

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

Converts the CharIterable to a new MutableCharBag.

Annotations
@Override
toListback to summary
public MutableCharList toList()

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

Implements org.eclipse.collections.api.CharIterable.toList.

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

Converts the CharIterable to a new MutableCharList.

Annotations
@Override
toSetback to summary
public MutableCharSet toSet()

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

Implements org.eclipse.collections.api.CharIterable.toSet.

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

Converts the CharIterable to a new MutableCharSet.

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

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

Implements org.eclipse.collections.api.CharIterable.toSortedArray.

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

private final Class CollectCharIterable.CharFunctionToProcedure<T>

extends Object
implements Procedure2<T, CharProcedure>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.CollectCharIterable.CharFunctionToProcedure
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 CharFunction<? 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 CharFunction<? super T> function
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CharFunctionToProcedureback to summary
private CharFunctionToProcedure(CharFunction<? super T> function)

Method Detail

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

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

Annotations
@Override