Class Preconditions

java.lang.Object
org.codelibs.saml2.core.util.Preconditions

public final class Preconditions extends Object
  • Method Details

    • checkNotNull

      public static <T> T checkNotNull(T t, String message)
      Throws a IllegalArgumentException if t is null.
      Parameters:
      t - the value to check for null
      message - the message to include in the thrown exception
      Returns:
      T
      Throws:
      IllegalArgumentException - if t is null