public interface PrimitiveShortIterable
extends java.lang.Iterable<java.lang.Short>
for creating one on the fly| Modifier and Type | Field and Description |
|---|---|
static PrimitiveShortIterable |
EMPTY
Empty iterable of primitive short values.
|
static PrimitiveShortIterator |
EMPTY_SHORT_ITERATOR
Empty iterator of primitive short values.
|
| Modifier and Type | Method and Description |
|---|---|
default PrimitiveIntIterable |
asIntIterable()
View this byte iterable as an int iterable.
|
default PrimitiveLongIterable |
asLongIterable()
View this byte iterable as a long iterable.
|
default PrimitiveIntIterable |
asUnsignedIntIterable()
View this byte iterable as an int iterable which uses the unsigned byte values
of this iterable.
|
default PrimitiveLongIterable |
asUnsignedLongIterable()
View this byte iterable as a long iterable which uses the unsigned byte values
of this iterable.
|
default boolean |
containsShort(short value)
Does this short iterable contain the given value?
|
default void |
forEachShort(ShortConsumer action)
Invoke the given action with each short value in this iterable.
|
default <E extends java.lang.Exception> |
forEachShortFragile(FragileShortConsumer<E> action)
Invoke the given fragile action with each value in this iterable.
|
default java.util.Iterator<java.lang.Short> |
iterator() |
PrimitiveShortIterator |
shortIterator()
Get a primitive short iterator.
|
static final PrimitiveShortIterator EMPTY_SHORT_ITERATOR
PrimitiveShortIterator.EMPTYstatic final PrimitiveShortIterable EMPTY
@NotNull PrimitiveShortIterator shortIterator()
@NotNull default java.util.Iterator<java.lang.Short> iterator()
iterator in interface java.lang.Iterable<java.lang.Short>default void forEachShort(@NotNull ShortConsumer action)
action - action to be call for each short value in sequemce.default <E extends java.lang.Exception> void forEachShortFragile(@NotNull FragileShortConsumer<E> action) throws E extends java.lang.Exception
E - checked exception thrown by actionaction - action to be called for each value in sequenceE - if action throws itE extends java.lang.Exceptiondefault boolean containsShort(short value)
value - value to check fortrue if the value is contained in this iterable, false if not@NotNull default PrimitiveIntIterable asIntIterable()
@NotNull default PrimitiveIntIterable asUnsignedIntIterable()
@NotNull default PrimitiveLongIterable asLongIterable()
@NotNull default PrimitiveLongIterable asUnsignedLongIterable()