Package com.googlecode.objectify.util
Class IteratorFirstResult<T>
- java.lang.Object
-
- com.googlecode.objectify.util.ResultCache<T>
-
- com.googlecode.objectify.util.IteratorFirstResult<T>
-
- All Implemented Interfaces:
Result<T>
,Serializable
public class IteratorFirstResult<T> extends ResultCache<T>
Extracts the first value of the iterator as the result value. If the iterator has no first value, the result value is null.- Author:
- Jeff Schnitzer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IteratorFirstResult(Iterator<T> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
nowUncached()
-
Methods inherited from class com.googlecode.objectify.util.ResultCache
isExecuted, now, postExecuteHook, toString, writeReplace
-
-
-
-
Method Detail
-
nowUncached
protected T nowUncached()
- Specified by:
nowUncached
in classResultCache<T>
-
-