Package com.googlecode.objectify
Class LoadResult<T>
- java.lang.Object
-
- com.googlecode.objectify.LoadResult<T>
-
-
Constructor Summary
Constructors Constructor Description LoadResult(Key<T> key, Result<T> result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
now()
Obtain the loaded value now.T
safe()
Like now(), but throws NotFoundException instead of returning null.
-
-
-
Method Detail
-
now
public T now()
Obtain the loaded value now.
-
safe
public final T safe() throws NotFoundException
Like now(), but throws NotFoundException instead of returning null.- Throws:
NotFoundException
- if the loaded value was not found
-
-