Interface Coercable
- 
 public interface Coercable
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectcoerceTo(java.lang.Class<?> destinationClass)Attempt to convert this Coercable into the destinationClass.
 
- 
- 
- 
Method Detail- 
coerceTojava.lang.Object coerceTo(java.lang.Class<?> destinationClass) throws java.lang.ClassCastExceptionAttempt to convert this Coercable into the destinationClass. Throws ClassCastException if the desired class is not allowed.- Parameters:
- destinationClass- Class desired...
- Returns:
- An Object cast to destinationClass.
- Throws:
- java.lang.ClassCastException- thrown if this Coercable cannot be cast to the destinationClass.
 
 
- 
 
-