T - The type to resolve objects to.public class Resolver<T>
extends java.lang.Object
Instances of Callable and Supplier are handled by recursively resolving the
object returned from the call or get method.
| Constructor and Description |
|---|
Resolver(java.lang.Class<T> pType)
Create a new
Resolver. |
| Modifier and Type | Method and Description |
|---|---|
T |
resolve(java.lang.Object pObject)
Resolve an object into the type this instance operates on.
|
public Resolver(java.lang.Class<T> pType)
Resolver.pType - The type objects will be resolved to.java.lang.NullPointerException - if pType is null.public T resolve(java.lang.Object pObject)
pObject - The object to resolve.T instance, or null if pObject is null or is not
resolvable into a T instance.