org.javimmutable.collections.iocursors
Class ReaderValueFunction<R extends Reader,T>

java.lang.Object
  extended by 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.


Constructor Summary
protected ReaderValueFunction(R reader)
           
 
Method Summary
 void close()
           
 Holder<T> nextValue()
           
protected abstract  Holder<T> readValue(R reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderValueFunction

protected ReaderValueFunction(R reader)
Method Detail

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.