T
- the data model typepublic class VoidSourceDriver<T> extends Object implements SourceDriver<T>
SourceDriver
which provides nothing.Constructor and Description |
---|
VoidSourceDriver() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes this object.
|
T |
get()
Gets the current data model object prepared by the
SourceDriver.next() method. |
boolean |
next()
Returns true iff the next data model object exists,
and then the
SourceDriver.get() method returns its object. |
void |
prepare()
Prepares this driver to invoke
SourceDriver.next() method. |
public void prepare()
SourceDriver
SourceDriver.next()
method.
This method will be invoked before SourceDriver.next()
only once.
This operation can execute only on the same thread as created this object.prepare
in interface SourceDriver<T>
prepare
in interface Preparable
public boolean next()
SourceDriver
SourceDriver.get()
method returns its object.
This operation can execute only on the same thread as created this object.next
in interface SourceDriver<T>
true
if the next data model object exists, otherwise false
public T get()
SourceDriver
SourceDriver.next()
method.
This operation can execute only on the same thread as created this object.get
in interface SourceDriver<T>
SourceDriver.next()
public void close()
SourceDriver
close
in interface SourceDriver<T>
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.