Module odo.core

Class Assertions

java.lang.Object
net.odoframework.util.Assertions

public class Assertions
extends Object
  • Constructor Details

    • Assertions

      public Assertions()
  • Method Details

    • notNull

      public static <T> T notNull​(T instance, String field)
    • notBlank

      public static String notBlank​(String instance, String field)
    • notEmpty

      public static <Z,​ T extends Collection<Z>> T notEmpty​(T instance, String field)
    • notEmptyArray

      public static <T> T[] notEmptyArray​(T[] instance, String field)
    • notExisting

      public static IllegalArgumentException notExisting​(String field)
    • assertPositive

      public static <T extends Number> T assertPositive​(T number, String field)