T
- object typepublic interface Source<T> extends Closeable
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns an object on the current source position.
|
boolean |
next()
Moves this source to the next object, and then returns
true
if and only if the next object exists. |
boolean next() throws IOException, InterruptedException
true
if and only if the next object exists.true
if the next object exists, otherwise false
IOException
- if failed to move this cursorInterruptedException
- if interrupted while searching for the next objectT get() throws IOException, InterruptedException
NoSuchElementException
- if this source has no objects on the current positionIOException
- if failed to load an object by I/O errorInterruptedException
- if interrupted while loading the current objectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.