org.jboss.weld.util

Class Preconditions



  • public class Preconditionsextends Object
    Author:
    Jozef Hartinger
    • Method Detail

      • checkArgumentNotNull

        public static void checkArgumentNotNull(Object reference,                                        String argumentName)
        Throws IllegalArgumentException with an appropriate message if the reference is null.
        Parameters:
        reference - the reference to be checked
        argumentName - name of the argument that is being checked. The name used in the error message.
      • checkNotNull

        public static void checkNotNull(Object reference)
        Parameters:
        reference - The reference to be checked
        Throws:
        NullPointerException - if the reference is null
      • checkArgument

        public static void checkArgument(boolean condition,                                 Object argument)
      • checkArgument

        public static void checkArgument(boolean condition,                                 String message)

Copyright © 2015. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14