public class ShortIterators
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static speiger.src.collections.shorts.utils.ShortIterators.EmptyIterator |
EMPTY
Empty Iterator Reference
|
| Constructor and Description |
|---|
ShortIterators() |
| Modifier and Type | Method and Description |
|---|---|
static speiger.src.collections.shorts.utils.ShortIterators.EmptyIterator |
emptyIterator()
Returns a Immutable EmptyIterator instance that is automatically casted.
|
static ShortBidirectionalIterator |
invert(ShortBidirectionalIterator it)
Inverter function for Bidirectional Iterators
|
static ShortListIterator |
invert(ShortListIterator it)
Inverter function for List Iterators
|
static ShortBidirectionalIterator |
unmodifiable(ShortBidirectionalIterator iterator)
Returns a Immutable Iterator instance based on the instance given.
|
static ShortIterator |
unmodifiable(ShortIterator iterator)
Returns a Immutable Iterator instance based on the instance given.
|
static ShortListIterator |
unmodifiable(ShortListIterator iterator)
Returns a Immutable ListIterator instance based on the instance given.
|
static int |
unwrap(short[] a,
java.util.Iterator<? extends java.lang.Short> i)
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(short[] a,
java.util.Iterator<? extends java.lang.Short> i,
int offset)
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(short[] a,
java.util.Iterator<? extends java.lang.Short> i,
int offset,
int max)
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(short[] a,
ShortIterator i)
A Primitive iterator variant of the ShortIterators unwrap function
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(java.lang.Short[] a,
ShortIterator i)
A Function to convert a Primitive Iterator to a Object array.
|
static int |
unwrap(short[] a,
ShortIterator i,
int offset)
A Primitive iterator variant of the ShortIterators unwrap function
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(java.lang.Short[] a,
ShortIterator i,
int offset)
A Function to convert a Primitive Iterator to a Object array.
|
static int |
unwrap(short[] a,
ShortIterator i,
int offset,
int max)
A Primitive iterator variant of the ShortIterators unwrap function
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(java.lang.Short[] a,
ShortIterator i,
int offset,
int max)
A Function to convert a Primitive Iterator to a Object array.
|
static ShortIterator |
wrap(java.util.Iterator<java.lang.Short> iterator)
Helper function to convert a Object Iterator into a Primitive Iterator
|
static speiger.src.collections.shorts.utils.ShortIterators.ArrayIterator |
wrap(short[] a)
Returns a Array Wrapping iterator
|
static speiger.src.collections.shorts.utils.ShortIterators.ArrayIterator |
wrap(short[] a,
int start,
int end)
Returns a Array Wrapping iterator
|
public static final speiger.src.collections.shorts.utils.ShortIterators.EmptyIterator EMPTY
public static speiger.src.collections.shorts.utils.ShortIterators.EmptyIterator emptyIterator()
public static ShortBidirectionalIterator invert(ShortBidirectionalIterator it)
it - the iterator that should be invertedpublic static ShortListIterator invert(ShortListIterator it)
it - the iterator that should be invertedpublic static ShortIterator unmodifiable(ShortIterator iterator)
iterator - that should be made immutable/unmodifyablepublic static ShortBidirectionalIterator unmodifiable(ShortBidirectionalIterator iterator)
iterator - that should be made immutable/unmodifyablepublic static ShortListIterator unmodifiable(ShortListIterator iterator)
iterator - that should be made immutable/unmodifyablepublic static ShortIterator wrap(java.util.Iterator<java.lang.Short> iterator)
iterator - that should be converted to a unboxing iteratorpublic static speiger.src.collections.shorts.utils.ShortIterators.ArrayIterator wrap(short[] a)
a - the array that should be wrappedpublic static speiger.src.collections.shorts.utils.ShortIterators.ArrayIterator wrap(short[] a,
int start,
int end)
a - the array that should be wrapped.start - the index to be started from.end - the index that should be ended.public static int unwrap(short[] a,
java.util.Iterator<? extends java.lang.Short> i)
a - where the elements should be insertedi - the source iteratorpublic static int unwrap(short[] a,
java.util.Iterator<? extends java.lang.Short> i,
int offset)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bepublic static int unwrap(short[] a,
java.util.Iterator<? extends java.lang.Short> i,
int offset,
int max)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bemax - the maximum values that should be extracted from the sourcejava.lang.IllegalStateException - if max is smaller the 0 or if the maximum index is larger then the arraypublic static int unwrap(short[] a,
ShortIterator i)
a - where the elements should be insertedi - the source iteratorpublic static int unwrap(short[] a,
ShortIterator i,
int offset)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bepublic static int unwrap(short[] a,
ShortIterator i,
int offset,
int max)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bemax - the maximum values that should be extracted from the sourcejava.lang.IllegalStateException - if max is smaller the 0 or if the maximum index is larger then the arraypublic static int unwrap(java.lang.Short[] a,
ShortIterator i)
a - where the elements should be insertedi - the source iteratorpublic static int unwrap(java.lang.Short[] a,
ShortIterator i,
int offset)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bepublic static int unwrap(java.lang.Short[] a,
ShortIterator i,
int offset,
int max)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bemax - the maximum values that should be extracted from the sourcejava.lang.IllegalStateException - if max is smaller the 0 or if the maximum index is larger then the array