Class Validator

java.lang.Object
schule.ngb.zm.util.Validator

public class Validator extends Object
Statische Methoden, um Methodenparameter auf Gültigkeit zu prüfen.
  • Method Details

    • requireNotNull

      public static final <T> T requireNotNull(T obj, CharSequence paramName)
    • requireNotNull

      public static final <T> T requireNotNull(T obj, CharSequence paramName, CharSequence msg)
    • requireNotNull

      public static final <T> T requireNotNull(T obj, Supplier<String> msg)
    • requireNotEmpty

      public static final String requireNotEmpty(String str, CharSequence paramName)
    • requireNotEmpty

      public static final String requireNotEmpty(String str, CharSequence paramName, CharSequence msg)
    • requireNotEmpty

      public static final String requireNotEmpty(String str, Supplier<String> msg)
    • requireNotEmpty

      public static final <T> T[] requireNotEmpty(T[] arr, CharSequence paramName)
    • requireNotEmpty

      public static final <T> T[] requireNotEmpty(T[] arr, CharSequence paramName, CharSequence msg)
    • requireNotEmpty

      public static final <T> T[] requireNotEmpty(T[] arr, Supplier<String> msg)
    • requirePositive

      public static final int requirePositive(int i)
    • requirePositive

      public static final int requirePositive(int i, CharSequence msg)
    • requirePositive

      public static final int requirePositive(int i, Supplier<String> msg)
    • requireNotNegative

      public static final int requireNotNegative(int i)
    • requireNotNegative

      public static final int requireNotNegative(int i, CharSequence msg)
    • requireNotNegative

      public static final int requireNotNegative(int i, Supplier<String> msg)
    • requireInRange

      public static final int requireInRange(int i, int min, int max)
    • requireInRange

      public static final int requireInRange(int i, int min, int max, CharSequence msg)
    • requireInRange

      public static final int requireInRange(int i, int min, int max, Supplier<String> msg)
    • requirePositive

      public static final double requirePositive(double i)
    • requirePositive

      public static final double requirePositive(double i, CharSequence msg)
    • requirePositive

      public static final double requirePositive(double i, Supplier<String> msg)
    • requireNotNegative

      public static final double requireNotNegative(double i)
    • requireNotNegative

      public static final double requireNotNegative(double i, CharSequence msg)
    • requireNotNegative

      public static final double requireNotNegative(double i, Supplier<String> msg)
    • requireInRange

      public static final double requireInRange(double i, double min, double max)
    • requireInRange

      public static final double requireInRange(double i, double min, double max, CharSequence msg)
    • requireInRange

      public static final double requireInRange(double i, double min, double max, Supplier<String> msg)
    • requireSize

      public static final <T> T[] requireSize(T[] arr, int size)
    • requireSize

      public static final <T> T[] requireSize(T[] arr, int size, CharSequence msg)
    • requireSize

      public static final <T> T[] requireSize(T[] arr, int size, Supplier<String> msg)