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