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

public Class ReverseShortIterable

extends AbstractLazyShortIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.ShortIterable, .LazyShortIterable, org.eclipse.collections.api.bag.primitive.MutableShortBag, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.factory.primitive.ShortBags, .ShortLists, .ShortSets, org.eclipse.collections.api.iterator.ShortIterator, org.eclipse.collections.api.list.primitive.ShortList, .MutableShortList, org.eclipse.collections.api.set.primitive.MutableShortSet, org.eclipse.collections.impl.lazy.ReverseIterable

This file was automatically generated from template file reversePrimitiveIterable.stg.
Since
5.0.
See Also
ReverseIterable

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final ShortList

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ReverseShortIterable
adapt(ShortList shortList)

public LazyShortIterable
asLazy()

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

Implements org.eclipse.collections.api.ShortIterable.asLazy.

Returns a LazyShortIterable adapter wrapping the source ShortIterable.

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 void
each(ShortProcedure procedure)

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

A synonym for forEach.

public boolean
public short
public short
public double
public short
public short
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[]
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable:
allSatisfyanySatisfyappendStringappendStringappendStringchunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcountdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringnoneSatisfyrejectselecttaptoSortedListtoString

Field Detail

adaptedback to summary
private final ShortList adapted

Constructor Detail

ReverseShortIterableback to summary
public ReverseShortIterable(ShortList newAdapted)

Method Detail

adaptback to summary
public static ReverseShortIterable adapt(ShortList shortList)
asLazyback to summary
public LazyShortIterable asLazy()

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

Implements org.eclipse.collections.api.ShortIterable.asLazy.

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

Returns a LazyShortIterable adapter wrapping the source ShortIterable.

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
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.
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
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
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
org.eclipse.collections.impl.lazy.primitive back to summary

private Class ReverseShortIterable.ReverseShortIterator

extends Object
implements ShortIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.ReverseShortIterable.ReverseShortIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.ShortIterator

Field Summary

Modifier and TypeField and Description
private int
currentIndex

Index of element to be returned by subsequent call to next.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

currentIndexback to summary
private int currentIndex

Index of element to be returned by subsequent call to next.

Constructor Detail

ReverseShortIteratorback to summary
private ReverseShortIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

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

Annotations
@Override
nextback to summary
public short next()

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

Annotations
@Override