Package de.bwaldvogel.mongo.backend
Class Assert
java.lang.Object
de.bwaldvogel.mongo.backend.Assert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoesNotStartWith(String string, String forbiddenPrefix) static voiddoesNotStartWith(String string, String forbiddenPrefix, Supplier<String> messageSupplier) static voidequals(long one, long other) static voidstatic <T> voidequals(T one, T other) static <T> voidstatic voidhasSize(Collection<?> values, int expectedSize) static voidhasSize(Collection<?> values, int expectedSize, Supplier<String> messageSupplier) static voidisEmpty(Collection<?> values) static voidisEmpty(Collection<?> values, Supplier<String> messageSupplier) static voidstatic voidstatic voidstatic voidstatic voidnotEmpty(Collection<?> values) static voidnotEmpty(Collection<?> values, Supplier<String> messageSupplier) static voidstatic voidstatic voidnotNullOrEmpty(String string) static voidnotNullOrEmpty(String string, Supplier<String> messageSupplier) static voidstartsWith(String string, String requiredPrefix) static voidstartsWith(String string, String requiredPrefix, Supplier<String> messageSupplier)
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
isEmpty
-
isEmpty
-
notEmpty
-
hasSize
-
hasSize
public static void hasSize(Collection<?> values, int expectedSize, Supplier<String> messageSupplier) -
notEmpty
-
equals
public static <T> void equals(T one, T other) -
equals
public static void equals(long one, long other) -
equals
-
equals
-
isTrue
-
isFalse
-
isNull
-
isNull
-
notNull
-
notNull
-
startsWith
-
startsWith
-
doesNotStartWith
-
doesNotStartWith
-
notNullOrEmpty
-
notNullOrEmpty
-