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

public Class SelectCharIterable

extends AbstractLazyCharIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.bag.primitive.MutableCharBag, org.eclipse.collections.api.block.predicate.primitive.CharPredicate, 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 selectPrimitiveIterable.stg.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private static class

Field Summary

Modifier and TypeField and Description
private final CharIterable
private final CharPredicate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(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(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(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
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyCharIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedArraytoSortedListtoString

Field Detail

delegateback to summary
private final CharIterable delegate
predicateback to summary
private final CharPredicate predicate

Constructor Detail

SelectCharIterableback to summary
public SelectCharIterable(CharIterable delegate, CharPredicate predicate)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(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(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(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
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class SelectCharIterable.CountCharProcedure

extends Object
implements CharProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectCharIterable.CountCharProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.CharProcedure, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private int
private final CharPredicate
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

counterback to summary
private int counter
predicateback to summary
private final CharPredicate predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CountCharProcedureback to summary
private CountCharProcedure(CharPredicate predicate)

Method Detail

getCountback to summary
public int getCount()
valueback to summary
public void value(char each)

Implements org.eclipse.collections.api.block.procedure.primitive.CharProcedure.value.

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

private final Class SelectCharIterable.IfCharProcedure

extends Object
implements CharProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectCharIterable.IfCharProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.CharProcedure, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final CharProcedure
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

procedureback to summary
private final CharProcedure procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

IfCharProcedureback to summary
private IfCharProcedure(CharProcedure procedure)

Method Detail

valueback to summary
public void value(char each)

Implements org.eclipse.collections.api.block.procedure.primitive.CharProcedure.value.

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

private final Class SelectCharIterable.SelectCharIterator

extends Object
implements CharIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectCharIterable.SelectCharIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.CharIterator

Field Summary

Modifier and TypeField and Description
private final CharIterator
private char
private final CharPredicate
private boolean

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

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

Field Detail

iteratorback to summary
private final CharIterator iterator
nextback to summary
private char next
predicateback to summary
private final CharPredicate predicate
verifiedHasNextback to summary
private boolean verifiedHasNext

Constructor Detail

SelectCharIteratorback to summary
private SelectCharIterator(CharIterable iterable, CharPredicate predicate)
SelectCharIteratorback to summary
private SelectCharIterator(CharIterator iterator, CharPredicate predicate)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.eclipse.collections.api.iterator.CharIterator.hasNext.

Annotations
@Override
nextback to summary
public char next()

Implements org.eclipse.collections.api.iterator.CharIterator.next.

Annotations
@Override