public interface Coercable
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
coerceTo(java.lang.Class<?> destinationClass)
Attempt to convert this Coercable into the destinationClass.
|
java.lang.Object coerceTo(java.lang.Class<?> destinationClass)
throws java.lang.ClassCastException
destinationClass - Class desired...java.lang.ClassCastException - thrown if this Coercable cannot be cast to the destinationClass.