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

public Class SelectShortIterable

extends AbstractLazyShortIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.bag.primitive.MutableShortBag, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, 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 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 ShortIterable
private final ShortPredicate

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 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 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
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedArraytoSortedListtoString

Field Detail

delegateback to summary
private final ShortIterable delegate
predicateback to summary
private final ShortPredicate predicate

Constructor Detail

SelectShortIterableback to summary
public SelectShortIterable(ShortIterable delegate, ShortPredicate predicate)

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

private final Class SelectShortIterable.CountShortProcedure

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

Field Summary

Modifier and TypeField and Description
private int
private final ShortPredicate
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 ShortPredicate predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CountShortProcedureback to summary
private CountShortProcedure(ShortPredicate predicate)

Method Detail

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

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

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

private final Class SelectShortIterable.IfShortProcedure

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

Field Summary

Modifier and TypeField and Description
private final ShortProcedure
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 ShortProcedure procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

IfShortProcedureback to summary
private IfShortProcedure(ShortProcedure procedure)

Method Detail

valueback to summary
public void value(short each)

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

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

private final Class SelectShortIterable.SelectShortIterator

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

Field Summary

Modifier and TypeField and Description
private final ShortIterator
private short
private final ShortPredicate
private boolean

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

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

Field Detail

iteratorback to summary
private final ShortIterator iterator
nextback to summary
private short next
predicateback to summary
private final ShortPredicate predicate
verifiedHasNextback to summary
private boolean verifiedHasNext

Constructor Detail

SelectShortIteratorback to summary
private SelectShortIterator(ShortIterable iterable, ShortPredicate predicate)
SelectShortIteratorback to summary
private SelectShortIterator(ShortIterator iterator, ShortPredicate predicate)

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