/** * Determine whether a callback is optional. * * @param callback the callback * @return {@code true} if it is optional, {@code false} if it is not optional or optionality could not be determined */ public static boolean isOptional(Callback callback) { return callback instanceof ExtendedCallback && ((ExtendedCallback) callback).isOptional(); }
/** * Determine whether a callback is optional. * * @param callback the callback * @return {@code true} if it is optional, {@code false} if it is not optional or optionality could not be determined */ public static boolean isOptional(Callback callback) { return callback instanceof ExtendedCallback && ((ExtendedCallback) callback).isOptional(); }
/** * Determine whether a callback is optional. * * @param callback the callback * @return {@code true} if it is optional, {@code false} if it is not optional or optionality could not be determined */ public static boolean isOptional(Callback callback) { return callback instanceof ExtendedCallback && ((ExtendedCallback) callback).isOptional(); }
/** * Determine whether a callback is optional. * * @param callback the callback * @return {@code true} if it is optional, {@code false} if it is not optional or optionality could not be determined */ public static boolean isOptional(Callback callback) { return callback instanceof ExtendedCallback && ((ExtendedCallback) callback).isOptional(); }