Interface IJSONValueType<RT>
- Type Parameters:
RT- type that you want to be returned after conversion
public interface IJSONValueType<RT>
This interface represents any convertible json value
-
Method Summary
-
Method Details
-
checkForInstance
This method should return true if the given object is instanceof RT, false otherwise- Parameters:
toCheck- object to check for instance- Returns:
- whether the given object is instance of RT (or something else) or not
-
convert
This method should convert the given object to a definite java value- Parameters:
toConvert- object to be converteddef- default object that should be returned if the conversion fails- Returns:
- converted object with RT type
-