/** * Throws {@link IllegalArgumentException} with an appropriate message if the reference is null. * * @param reference the reference to be checked * @param argumentName name of the argument that is being checked. The name used in the error message. */ public static void checkArgumentNotNull(Object reference, String argumentName) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(argumentName); } }
/** * Throws {@link IllegalArgumentException} with an appropriate message if the reference is null. * * @param reference the reference to be checked * @param argumentName name of the argument that is being checked. The name used in the error message. */ public static void checkArgumentNotNull(Object reference, String argumentName) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(argumentName); } }
/** * Throws {@link IllegalArgumentException} with an appropriate message if the reference is null. * * @param reference the reference to be checked * @param argumentName name of the argument that is being checked. The name used in the error message. */ public static void checkArgumentNotNull(Object reference, String argumentName) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(argumentName); } }
/** * Throws {@link IllegalArgumentException} if the reference is null. This method should only be used for methods with single argument. * * @param reference the reference to be checked */ public static void checkArgumentNotNull(Object reference) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(); } }
/** * Throws {@link IllegalArgumentException} if the reference is null. This method should only be used for methods with single argument. * * @param reference the reference to be checked */ public static void checkArgumentNotNull(Object reference) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(); } }
/** * Throws {@link IllegalArgumentException} with an appropriate message if the reference is null. * * @param reference the reference to be checked * @param argumentName name of the argument that is being checked. The name used in the error message. */ public static void checkArgumentNotNull(Object reference, String argumentName) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(argumentName); } }
/** * Throws {@link IllegalArgumentException} with an appropriate message if the reference is null. * * @param reference the reference to be checked * @param argumentName name of the argument that is being checked. The name used in the error message. */ public static void checkArgumentNotNull(Object reference, String argumentName) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(argumentName); } }
/** * Throws {@link IllegalArgumentException} if the reference is null. This method should only be used for methods with single argument. * * @param reference the reference to be checked */ public static void checkArgumentNotNull(Object reference) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(); } }
/** * Throws {@link IllegalArgumentException} if the reference is null. This method should only be used for methods with single argument. * * @param reference the reference to be checked */ public static void checkArgumentNotNull(Object reference) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(); } }
/** * Throws {@link IllegalArgumentException} if the reference is null. This method should only be used for methods with single argument. * * @param reference the reference to be checked */ public static void checkArgumentNotNull(Object reference) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(); } }
/** * Throws {@link IllegalArgumentException} with an appropriate message if the reference is null. * * @param reference the reference to be checked * @param argumentName name of the argument that is being checked. The name used in the error message. */ public static void checkArgumentNotNull(Object reference, String argumentName) { if (reference == null) { throw ValidatorLogger.LOG.argumentNull(argumentName); } }