Class Preconditions

java.lang.Object
com.onelogin.saml2.util.Preconditions

public final class Preconditions extends Object
  • Constructor Details

    • Preconditions

      private Preconditions()
  • Method Details

    • checkNotNull

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