Class Check

java.lang.Object
org.midheaven.lang.Check

public class Check extends Object
Represents Check.
  • Constructor Details

    • Check

      public Check()
  • Method Details

    • argumentIsNotNull

      public static <T> T argumentIsNotNull(T value)
      Performs argumentIsNotNull.
      Parameters:
      value - the value value
      Returns:
      the result of argumentIsNotNull
    • argumentIsNotNull

      public static <T> T argumentIsNotNull(T value, String argumentName)
      Performs argumentIsNotNull.
      Parameters:
      value - the value value
      argumentName - the argumentName value
      Returns:
      the result of argumentIsNotNull
    • argumentIsNotBlank

      public static CharSequence argumentIsNotBlank(CharSequence value)
      Performs argumentIsNotBlank.
      Parameters:
      value - the value value
      Returns:
      the result of argumentIsNotBlank
    • argumentIsNotBlank

      public static CharSequence argumentIsNotBlank(CharSequence value, String argumentName)
      Performs argumentIsNotBlank.
      Parameters:
      value - the value value
      argumentName - the argumentName value
      Returns:
      the result of argumentIsNotBlank
    • argumentIsNotEmpty

      public static CharSequence argumentIsNotEmpty(CharSequence value, String argumentName)
      Performs argumentIsNotEmpty.
      Parameters:
      value - the value value
      argumentName - the argumentName value
      Returns:
      the result of argumentIsNotEmpty
    • argumentIsNotEmpty

      public static <T, C extends Collection<T>> C argumentIsNotEmpty(C value)
      Performs argumentIsNotEmpty.
      Parameters:
      value - the value value
      Returns:
      the result of argumentIsNotEmpty
    • argumentIsNotEmpty

      public static <T, C extends Collection<T>> C argumentIsNotEmpty(C value, String argumentName)
      Performs argumentIsNotEmpty.
      Parameters:
      value - the value value
      argumentName - the argumentName value
      Returns:
      the result of argumentIsNotEmpty