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

public Class LazyShortIterableAdapter

extends AbstractLazyShortIterable
Class Inheritance
Imports
org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.bag.primitive.MutableShortBag, org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.iterator.ShortIterator, org.eclipse.collections.api.list.primitive.MutableShortList, org.eclipse.collections.api.set.primitive.MutableShortSet

This file was automatically generated from template file lazyPrimitiveIterableAdapter.stg.
Since
3.0

Field Summary

Modifier and TypeField and Description
private final ShortIterable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(ShortPredicate predicate)

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

Implements org.eclipse.collections.api.ShortIterable.allSatisfy.

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

public boolean
anySatisfy(ShortPredicate predicate)

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

Implements org.eclipse.collections.api.ShortIterable.anySatisfy.

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

public void
appendString(Appendable appendable)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.appendString.

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

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

public double
public boolean
contains(short value)

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

Implements org.eclipse.collections.api.ShortIterable.contains.

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

public boolean
containsAll(short... source)

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

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

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

public boolean
containsAll(ShortIterable source)

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

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

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

public int
count(ShortPredicate predicate)

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

Implements org.eclipse.collections.api.ShortIterable.count.

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

public short
public void
each(ShortProcedure procedure)

Implements org.eclipse.collections.api.ShortIterable.each.

A synonym for forEach.

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

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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 short
public short
public double
public short
public short
public boolean
noneSatisfy(ShortPredicate predicate)

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

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

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

public boolean
public ShortIterator
shortIterator()

Implements org.eclipse.collections.api.ShortIterable.shortIterator.

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

public int
public long
public short[]
public MutableShortBag
public MutableShortList
public MutableShortSet
public short[]
public MutableShortList
public String
toString()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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.AbstractLazyShortIterable:
asLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortflatCollectrejectselecttap

Field Detail

delegateback to summary
private final ShortIterable delegate

Constructor Detail

LazyShortIterableAdapterback to summary
public LazyShortIterableAdapter(ShortIterable delegate)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(ShortPredicate predicate)

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

Implements org.eclipse.collections.api.ShortIterable.allSatisfy.

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

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

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

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

Implements org.eclipse.collections.api.ShortIterable.anySatisfy.

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

Returns true if any of the elements in the ShortIterable 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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.average.

Implements org.eclipse.collections.api.ShortIterable.average.

Annotations
@Override
containsback to summary
public boolean contains(short value)

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

Implements org.eclipse.collections.api.ShortIterable.contains.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Implements org.eclipse.collections.api.ShortIterable.count.

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

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

Annotations
@Override
detectIfNoneback to summary
public short detectIfNone(ShortPredicate predicate, short ifNone)

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

Implements org.eclipse.collections.api.ShortIterable.detectIfNone.

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

Implements org.eclipse.collections.api.ShortIterable.each.

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

A synonym for forEach.

Annotations
@Override
Since
7.0.
injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function)

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

Implements org.eclipse.collections.api.ShortIterable.injectInto.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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.AbstractLazyShortIterable.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 short max()

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

Implements org.eclipse.collections.api.ShortIterable.max.

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

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

Implements org.eclipse.collections.api.ShortIterable.maxIfEmpty.

Annotations
@Override
medianback to summary
public double median()

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

Implements org.eclipse.collections.api.ShortIterable.median.

Annotations
@Override
minback to summary
public short min()

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

Implements org.eclipse.collections.api.ShortIterable.min.

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

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

Implements org.eclipse.collections.api.ShortIterable.minIfEmpty.

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

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

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

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

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

Annotations
@Override
notEmptyback to summary
public boolean notEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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
shortIteratorback to summary
public ShortIterator shortIterator()

Implements org.eclipse.collections.api.ShortIterable.shortIterator.

Doc from org.eclipse.collections.api.ShortIterable.shortIterator.

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

Annotations
@Override
sizeback to summary
public int size()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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.AbstractLazyShortIterable.sum.

Implements org.eclipse.collections.api.ShortIterable.sum.

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

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

Implements org.eclipse.collections.api.ShortIterable.toArray.

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

Converts the ShortIterable to a primitive short array.

Annotations
@Override
toBagback to summary
public MutableShortBag toBag()

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

Implements org.eclipse.collections.api.ShortIterable.toBag.

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

Converts the ShortIterable to a new MutableShortBag.

Annotations
@Override
toListback to summary
public MutableShortList toList()

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

Implements org.eclipse.collections.api.ShortIterable.toList.

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

Converts the ShortIterable to a new MutableShortList.

Annotations
@Override
toSetback to summary
public MutableShortSet toSet()

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

Implements org.eclipse.collections.api.ShortIterable.toSet.

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

Converts the ShortIterable to a new MutableShortSet.

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

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

Implements org.eclipse.collections.api.ShortIterable.toSortedArray.

Annotations
@Override
toSortedListback to summary
public MutableShortList toSortedList()

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

Implements org.eclipse.collections.api.ShortIterable.toSortedList.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable.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