A resolver resolves objects of various types to a single type. This base implementation simply checks if objects are instances of the type to resolve to, and returns the object cast to the type if that is the case.
Instances of Closure and Callable are handled by recursively resolving the object
returned from the call method.
- The type to resolve objects to.| Constructor and description |
|---|
Resolver
(java.lang.Class<T> pType)Create a new Resolver. |
| Type | Name and description |
|---|---|
T |
resolve(java.lang.Object pObject)Resolve an object into the type this instance operates on. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |