Class Assert

java.lang.Object
de.bwaldvogel.mongo.backend.Assert

public class Assert extends Object
  • Constructor Details

    • Assert

      public Assert()
  • Method Details

    • isEmpty

      public static void isEmpty(Collection<?> values)
    • isEmpty

      public static void isEmpty(Collection<?> values, Supplier<String> messageSupplier)
    • notEmpty

      public static void notEmpty(Collection<?> values)
    • hasSize

      public static void hasSize(Collection<?> values, int expectedSize)
    • hasSize

      public static void hasSize(Collection<?> values, int expectedSize, Supplier<String> messageSupplier)
    • notEmpty

      public static void notEmpty(Collection<?> values, Supplier<String> messageSupplier)
    • equals

      public static <T> void equals(T one, T other)
    • equals

      public static void equals(long one, long other)
    • equals

      public static <T> void equals(T one, T other, Supplier<String> messageSupplier)
    • equals

      public static void equals(long one, long other, Supplier<String> messageSupplier)
    • isTrue

      public static void isTrue(boolean value, Supplier<String> messageSupplier)
    • isFalse

      public static void isFalse(boolean value, Supplier<String> messageSupplier)
    • isNull

      public static void isNull(Object value)
    • isNull

      public static void isNull(Object value, Supplier<String> messageSupplier)
    • notNull

      public static void notNull(Object value)
    • notNull

      public static void notNull(Object value, Supplier<String> messageSupplier)
    • startsWith

      public static void startsWith(String string, String requiredPrefix)
    • startsWith

      public static void startsWith(String string, String requiredPrefix, Supplier<String> messageSupplier)
    • doesNotStartWith

      public static void doesNotStartWith(String string, String forbiddenPrefix)
    • doesNotStartWith

      public static void doesNotStartWith(String string, String forbiddenPrefix, Supplier<String> messageSupplier)
    • notNullOrEmpty

      public static void notNullOrEmpty(String string)
    • notNullOrEmpty

      public static void notNullOrEmpty(String string, Supplier<String> messageSupplier)