org.javimmutable.collections.iocursors
Class ReaderValueFunction<R extends Reader,T>
java.lang.Object
org.javimmutable.collections.iocursors.ReaderValueFunction<R,T>
- Type Parameters:
R
- T
-
- All Implemented Interfaces:
- ValueFunction<T>, CloseableValueFunction<T>
public abstract class ReaderValueFunction<R extends Reader,T>
- extends Object
- implements CloseableValueFunction<T>
Abstract base class for CloseableValueFunctions that read values from a Reader.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderValueFunction
protected ReaderValueFunction(R reader)
readValue
protected abstract Holder<T> readValue(R reader)
nextValue
public Holder<T> nextValue()
- Specified by:
nextValue
in interface ValueFunction<T>
close
public void close()
- Specified by:
close
in interface CloseableValueFunction<T>
Copyright © 2014 Burton Computer Corporation. All rights reserved.