public class IntIterators
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static speiger.src.collections.ints.utils.IntIterators.EmptyIterator |
EMPTY
Empty Iterator Reference
|
| Constructor and Description |
|---|
IntIterators() |
| Modifier and Type | Method and Description |
|---|---|
static speiger.src.collections.ints.utils.IntIterators.EmptyIterator |
emptyIterator()
Returns a Immutable EmptyIterator instance that is automatically casted.
|
static IntBidirectionalIterator |
invert(IntBidirectionalIterator it)
Inverter function for Bidirectional Iterators
|
static IntListIterator |
invert(IntListIterator it)
Inverter function for List Iterators
|
static IntBidirectionalIterator |
unmodifiable(IntBidirectionalIterator iterator)
Returns a Immutable Iterator instance based on the instance given.
|
static IntIterator |
unmodifiable(IntIterator iterator)
Returns a Immutable Iterator instance based on the instance given.
|
static IntListIterator |
unmodifiable(IntListIterator iterator)
Returns a Immutable ListIterator instance based on the instance given.
|
static int |
unwrap(int[] a,
IntIterator i)
A Primitive iterator variant of the IntIterators unwrap function
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(int[] a,
IntIterator i,
int offset)
A Primitive iterator variant of the IntIterators unwrap function
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(int[] a,
IntIterator i,
int offset,
int max)
A Primitive iterator variant of the IntIterators unwrap function
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(int[] a,
java.util.Iterator<? extends java.lang.Integer> i)
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(int[] a,
java.util.Iterator<? extends java.lang.Integer> i,
int offset)
Iterates over a iterator and inserts the values into the array and returns the amount that was inserted
|
static int |
unwrap(int[] a,
java.util.Iterator<? extends java.lang.Integer> 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(java.lang.Integer[] a,
IntIterator i)
A Function to convert a Primitive Iterator to a Object array.
|
static int |
unwrap(java.lang.Integer[] a,
IntIterator i,
int offset)
A Function to convert a Primitive Iterator to a Object array.
|
static int |
unwrap(java.lang.Integer[] a,
IntIterator i,
int offset,
int max)
A Function to convert a Primitive Iterator to a Object array.
|
static speiger.src.collections.ints.utils.IntIterators.ArrayIterator |
wrap(int[] a)
Returns a Array Wrapping iterator
|
static speiger.src.collections.ints.utils.IntIterators.ArrayIterator |
wrap(int[] a,
int start,
int end)
Returns a Array Wrapping iterator
|
static IntIterator |
wrap(java.util.Iterator<java.lang.Integer> iterator)
Helper function to convert a Object Iterator into a Primitive Iterator
|
public static final speiger.src.collections.ints.utils.IntIterators.EmptyIterator EMPTY
public static speiger.src.collections.ints.utils.IntIterators.EmptyIterator emptyIterator()
public static IntBidirectionalIterator invert(IntBidirectionalIterator it)
it - the iterator that should be invertedpublic static IntListIterator invert(IntListIterator it)
it - the iterator that should be invertedpublic static IntIterator unmodifiable(IntIterator iterator)
iterator - that should be made immutable/unmodifyablepublic static IntBidirectionalIterator unmodifiable(IntBidirectionalIterator iterator)
iterator - that should be made immutable/unmodifyablepublic static IntListIterator unmodifiable(IntListIterator iterator)
iterator - that should be made immutable/unmodifyablepublic static IntIterator wrap(java.util.Iterator<java.lang.Integer> iterator)
iterator - that should be converted to a unboxing iteratorpublic static speiger.src.collections.ints.utils.IntIterators.ArrayIterator wrap(int[] a)
a - the array that should be wrappedpublic static speiger.src.collections.ints.utils.IntIterators.ArrayIterator wrap(int[] 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(int[] a,
java.util.Iterator<? extends java.lang.Integer> i)
a - where the elements should be insertedi - the source iteratorpublic static int unwrap(int[] a,
java.util.Iterator<? extends java.lang.Integer> i,
int offset)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bepublic static int unwrap(int[] a,
java.util.Iterator<? extends java.lang.Integer> 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(int[] a,
IntIterator i)
a - where the elements should be insertedi - the source iteratorpublic static int unwrap(int[] a,
IntIterator i,
int offset)
a - where the elements should be insertedi - the source iteratoroffset - the array offset where the start should bepublic static int unwrap(int[] a,
IntIterator 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.Integer[] a,
IntIterator i)
a - where the elements should be insertedi - the source iteratorpublic static int unwrap(java.lang.Integer[] a,
IntIterator 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.Integer[] a,
IntIterator 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