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