Package com.landawn.abacus.util
Class ExceptionalStream.ExceptionalIterator<T,E extends Exception>
java.lang.Object
com.landawn.abacus.util.ExceptionalStream.ExceptionalIterator<T,E>
- Type Parameters:
T
-E
-
- All Implemented Interfaces:
Immutable
- Enclosing class:
- ExceptionalStream<T,
E extends Exception>
@Internal
@Immutable
public abstract static class ExceptionalStream.ExceptionalIterator<T,E extends Exception>
extends Object
implements Immutable
The Class ExceptionalIterator.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(long n) void
close()
static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E> concat
(ExceptionalStream.ExceptionalIterator<? extends T, ? extends E>... a) static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E> concat
(Collection<? extends ExceptionalStream.ExceptionalIterator<? extends T, ? extends E>> c) long
count()
static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E> empty()
abstract boolean
hasNext()
Checks for next.static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E> just
(T val) abstract T
next()
static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E> of
(T... a) static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E> of
(T[] a, int fromIndex, int toIndex) static <T,
E extends Exception>
ExceptionalStream.ExceptionalIterator<T,E>
-
Constructor Details
-
ExceptionalIterator
public ExceptionalIterator()
-
-
Method Details
-
empty
-
just
- Type Parameters:
T
-- Parameters:
val
-- Returns:
-
of
@SafeVarargs public static <T,E extends Exception> ExceptionalStream.ExceptionalIterator<T,E> of(T... a) - Type Parameters:
T
-- Parameters:
a
-- Returns:
-
of
public static <T,E extends Exception> ExceptionalStream.ExceptionalIterator<T,E> of(T[] a, int fromIndex, int toIndex) - Type Parameters:
T
-- Parameters:
a
-fromIndex
-toIndex
-- Returns:
-
wrap
public static <T,E extends Exception> ExceptionalStream.ExceptionalIterator<T,E> wrap(Iterator<? extends T> iter) -
concat
public static <T,E extends Exception> ExceptionalStream.ExceptionalIterator<T,E> concat(ExceptionalStream.ExceptionalIterator<? extends T, ? extends E>... a) -
concat
public static <T,E extends Exception> ExceptionalStream.ExceptionalIterator<T,E> concat(Collection<? extends ExceptionalStream.ExceptionalIterator<? extends T, ? extends E>> c) -
hasNext
Checks for next.- Returns:
- Throws:
E
- the e
-
next
- Returns:
- Throws:
E
- the e
-
advance
- Parameters:
n
-- Throws:
E
- the e
-
count
- Returns:
- Throws:
E
- the e
-
close
- Throws:
E
- the e
-