|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.util.DelayedResultForcer
public final class DelayedResultForcer
An object mapper which forces the evaluation of delayed results. This is useful for unwrapping delayed results put into a map.
Field Summary | |
---|---|
static DelayedResultForcer |
instance
The singleton instance of this class. |
Constructor Summary | |
---|---|
DelayedResultForcer()
|
Method Summary | |
---|---|
java.lang.Object |
map(java.lang.Object obj)
If obj is null , return null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DelayedResultForcer instance
Constructor Detail |
---|
public DelayedResultForcer()
Method Detail |
---|
public java.lang.Object map(java.lang.Object obj)
obj
is null
, return null
. If
obj
is an instance of IDelayedResult
, return
the result of forcing the computation of the result. Otherwise, return
obj
unchanged.
map
in interface IObjectMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |