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

public Class LazyCharIterableAdapter

extends AbstractLazyCharIterable
Class Inheritance
Imports
org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.bag.primitive.MutableCharBag, org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, 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 lazyPrimitiveIterableAdapter.stg.
Since
3.0

Field Summary

Modifier and TypeField and Description
private final CharIterable

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 void
appendString(Appendable appendable)

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

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

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String separator)

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

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

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String start, String separator, String end)

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

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public double
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
contains(char value)

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

Implements org.eclipse.collections.api.CharIterable.contains.

Returns true if the value is contained in the CharIterable, and false if it is not.

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 char
public void
each(CharProcedure procedure)

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

A synonym for forEach.

public <T> T
public boolean
public String
makeString()

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

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

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

public String
makeString(String separator)

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

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

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

public String
makeString(String start, String separator, String end)

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

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

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

public char
public char
public double
public char
public char
public boolean
noneSatisfy(CharPredicate predicate)

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

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

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

public boolean
public int
public long
public char[]
public MutableCharBag
public MutableCharList
public MutableCharSet
public char[]
public MutableCharList
public String
toString()

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

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyCharIterable:
asLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortflatCollectrejectselecttap

Field Detail

delegateback to summary
private final CharIterable delegate

Constructor Detail

LazyCharIterableAdapterback to summary
public LazyCharIterableAdapter(CharIterable delegate)

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
appendStringback to summary
public void appendString(Appendable appendable)

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

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

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString().

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String separator)

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

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

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String).

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String start, String separator, String end)

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

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String, String, String).

Annotations
@Override
averageback to summary
public double average()

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

Implements org.eclipse.collections.api.CharIterable.average.

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
containsback to summary
public boolean contains(char value)

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

Implements org.eclipse.collections.api.CharIterable.contains.

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

Returns true if the value is contained in the CharIterable, and false if it is not.

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
detectIfNoneback to summary
public char detectIfNone(CharPredicate predicate, char ifNone)

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

Implements org.eclipse.collections.api.CharIterable.detectIfNone.

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.
injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function)

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

Implements org.eclipse.collections.api.CharIterable.injectInto.

Annotations
@Override
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
makeStringback to summary
public String makeString()

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

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

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

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

Annotations
@Override
makeStringback to summary
public String makeString(String separator)

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

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

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

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

Annotations
@Override
makeStringback to summary
public String makeString(String start, String separator, String end)

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

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

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

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

Annotations
@Override
maxback to summary
public char max()

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

Implements org.eclipse.collections.api.CharIterable.max.

Annotations
@Override
maxIfEmptyback to summary
public char maxIfEmpty(char defaultValue)

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

Implements org.eclipse.collections.api.CharIterable.maxIfEmpty.

Annotations
@Override
medianback to summary
public double median()

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

Implements org.eclipse.collections.api.CharIterable.median.

Annotations
@Override
minback to summary
public char min()

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

Implements org.eclipse.collections.api.CharIterable.min.

Annotations
@Override
minIfEmptyback to summary
public char minIfEmpty(char defaultValue)

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

Implements org.eclipse.collections.api.CharIterable.minIfEmpty.

Annotations
@Override
noneSatisfyback to summary
public boolean noneSatisfy(CharPredicate predicate)

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

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

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

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

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
sumback to summary
public long sum()

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

Implements org.eclipse.collections.api.CharIterable.sum.

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
toSortedListback to summary
public MutableCharList toSortedList()

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

Implements org.eclipse.collections.api.CharIterable.toSortedList.

Annotations
@Override
toStringback to summary
public String toString()

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

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

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

Returns 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());
Annotations
@Override