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

public Class CollectShortIterable<T>

extends AbstractLazyShortIterable
Class Inheritance
Imports
java.util.Arrays, .Iterator, org.eclipse.collections.api.ShortIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableShortBag, org.eclipse.collections.api.block.function.primitive.ShortFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.Procedure2, 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.MutableShortList, org.eclipse.collections.api.set.primitive.MutableShortSet

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 ShortFunction<? super T>
private final LazyIterable<T>
private final CollectShortIterable.ShortFunctionToProcedure<T>

Constructor Summary

AccessConstructor and Description
public
CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(final 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(final 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 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(final 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 void
each(ShortProcedure procedure)

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

A synonym for forEach.

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

Field Detail

functionback to summary
private final ShortFunction<? super T> function
iterableback to summary
private final LazyIterable<T> iterable
shortFunctionToProcedureback to summary
private final CollectShortIterable.ShortFunctionToProcedure<T> shortFunctionToProcedure

Constructor Detail

CollectShortIterableback to summary
public CollectShortIterable(LazyIterable<T> adapted, ShortFunction<? super T> function)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(final 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(final 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
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(final 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
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
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
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 final Class CollectShortIterable.ShortFunctionToProcedure<T>

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

Constructor Detail

ShortFunctionToProcedureback to summary
private ShortFunctionToProcedure(ShortFunction<? super T> function)

Method Detail

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

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

Annotations
@Override