Interface Coercable
public interface Coercable
-
Method Summary
-
Method Details
-
coerceTo
Attempt 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:
ClassCastException
- thrown if this Coercable cannot be cast to the destinationClass.
-