raven-core/src/main/java/org/raven/core/Intrinsics.java
/**
     * Requires that an object be a specific type
     *
     * @param obj     The object
     * @param type    The expected type
     * @param message Error message to be displayed if the types do not match
     */
Requires that an object be a specific type
@param obj     The object
@param type    The expected type
@param message Error message to be displayed if the types do not match
Requires that an object be a specific type @param obj The object @param type The expected type @param message Error message to be displayed if the types do not match
public static void requireType(final TObject obj, final TType type, final String message) {
        if (!obj.getType().equals(type)) {
            throw new RuntimeException(message);
        }
    }
public static void requireType ( final TObject obj , final TType type , final String message ) { if ( ! obj . getType ( ) . equals ( type ) ) { throw new RuntimeException ( message ) ; } }
Requires that an object be a specific type
 @param obj     The object
 @param type    The expected type
 @param message Error message to be displayed if the types do not match
Requires that an object be a specific type @param obj The object @param type The expected type @param message Error message to be displayed if the types do not match