Package io.inugami.api.exceptions
Class Asserts
- java.lang.Object
-
- io.inugami.api.exceptions.Asserts
-
public class Asserts extends Object
Asserts- Since:
- 22 juil. 2016
-
-
Constructor Summary
Constructors Constructor Description Asserts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertAfter(ErrorCode errorCode, ChronoLocalDate ref, ChronoLocalDate value)static voidassertAfter(ErrorCode errorCode, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertAfter(String message, ChronoLocalDate ref, ChronoLocalDate value)static voidassertAfter(String message, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertAfter(ChronoLocalDate ref, ChronoLocalDate value)static voidassertAfter(ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertAfter(Supplier<String> messageProducer, ChronoLocalDate ref, ChronoLocalDate value)static voidassertAfter(Supplier<String> messageProducer, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertBefore(ErrorCode errorCode, ChronoLocalDate ref, ChronoLocalDate value)static voidassertBefore(ErrorCode errorCode, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertBefore(String message, ChronoLocalDate ref, ChronoLocalDate value)static voidassertBefore(String message, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertBefore(ChronoLocalDate ref, ChronoLocalDate value)static voidassertBefore(ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertBefore(Supplier<String> messageProducer, ChronoLocalDate ref, ChronoLocalDate value)static voidassertBefore(Supplier<String> messageProducer, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertEmpty(ErrorCode errorCode, IsEmptyFacet value)static voidassertEmpty(ErrorCode errorCode, String value)static voidassertEmpty(ErrorCode errorCode, Collection<?> value)static voidassertEmpty(ErrorCode errorCode, Map<?,?> value)static voidassertEmpty(IsEmptyFacet value)static voidassertEmpty(String value)static voidassertEmpty(String message, IsEmptyFacet value)static voidassertEmpty(String message, String value)static voidassertEmpty(String message, Collection<?> value)static voidassertEmpty(String message, Map<?,?> value)static voidassertEmpty(Collection<?> value)static voidassertEmpty(Supplier<String> messageProducer, IsEmptyFacet value)static voidassertEmpty(Supplier<String> messageProducer, String value)static voidassertEmpty(Supplier<String> messageProducer, Collection<?> value)static voidassertEmpty(Supplier<String> messageProducer, Map<?,?> value)static voidassertEmpty(Map<?,?> value)static voidassertEquals(double ref, double value)static voidassertEquals(float ref, float value)static voidassertEquals(int ref, int value)static voidassertEquals(long ref, long value)static voidassertEquals(ErrorCode errorCode, double ref, double value)static voidassertEquals(ErrorCode errorCode, float ref, float value)static voidassertEquals(ErrorCode errorCode, int ref, int value)static voidassertEquals(ErrorCode errorCode, long ref, long value)static voidassertEquals(ErrorCode errorCode, Object ref, Object value)static voidassertEquals(ErrorCode errorCode, ChronoLocalDate ref, ChronoLocalDate value)static voidassertEquals(ErrorCode errorCode, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertEquals(Object ref, Object value)static voidassertEquals(String message, double ref, double value)static voidassertEquals(String message, float ref, float value)static voidassertEquals(String message, int ref, int value)static voidassertEquals(String message, long ref, long value)static voidassertEquals(String message, Object ref, Object value)static voidassertEquals(String message, ChronoLocalDate ref, ChronoLocalDate value)static voidassertEquals(String message, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertEquals(ChronoLocalDate ref, ChronoLocalDate value)static voidassertEquals(ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertEquals(Supplier<String> messageProducer, double ref, double value)static voidassertEquals(Supplier<String> messageProducer, float ref, float value)static voidassertEquals(Supplier<String> messageProducer, int ref, int value)static voidassertEquals(Supplier<String> messageProducer, long ref, long value)static voidassertEquals(Supplier<String> messageProducer, Object ref, Object value)static voidassertEquals(Supplier<String> messageProducer, ChronoLocalDate ref, ChronoLocalDate value)static voidassertEquals(Supplier<String> messageProducer, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)static voidassertFalse(boolean expression)static voidassertFalse(ErrorCode errorCode, boolean expression)static voidassertFalse(String message, boolean expression)static voidassertFalse(Supplier<String> messageProducer, boolean expression)static voidassertFileExecutable(ErrorCode errorCode, File path)static voidassertFileExecutable(File path)static voidassertFileExecutable(String message, File path)static voidassertFileExists(ErrorCode errorCode, File path)static voidassertFileExists(File path)static voidassertFileExists(String message, File path)static voidassertFileReadable(ErrorCode errorCode, File path)static voidassertFileReadable(File path)static voidassertFileReadable(String message, File path)static voidassertFileWrite(ErrorCode errorCode, File path)static voidassertFileWrite(File path)static voidassertFileWrite(String message, File path)static voidassertFolderExists(ErrorCode errorCode, File path)static voidassertFolderExists(File path)static voidassertFolderExists(String message, File path)static voidassertHigher(double ref, double value)static voidassertHigher(float ref, float value)static voidassertHigher(int ref, int value)static voidassertHigher(long ref, long value)static voidassertHigher(ErrorCode errorCode, double ref, double value)static voidassertHigher(ErrorCode errorCode, float ref, float value)static voidassertHigher(ErrorCode errorCode, int ref, int value)static voidassertHigher(ErrorCode errorCode, long ref, long value)static voidassertHigher(ErrorCode errorCode, Double ref, Double value)static voidassertHigher(ErrorCode errorCode, Integer ref, Integer value)static voidassertHigher(ErrorCode errorCode, Long ref, Long value)static voidassertHigher(ErrorCode errorCode, BigDecimal ref, BigDecimal value)static voidassertHigher(Double ref, Double value)static voidassertHigher(Integer ref, Integer value)static voidassertHigher(Long ref, Long value)static voidassertHigher(String message, double ref, double value)static voidassertHigher(String message, float ref, float value)static voidassertHigher(String message, int ref, int value)static voidassertHigher(String message, long ref, long value)static voidassertHigher(String message, Double ref, Double value)static voidassertHigher(String message, Integer ref, Integer value)static voidassertHigher(String message, Long ref, Long value)static voidassertHigher(String message, BigDecimal ref, BigDecimal value)static voidassertHigher(BigDecimal ref, BigDecimal value)static voidassertHigher(Supplier<String> messageProducer, double ref, double value)static voidassertHigher(Supplier<String> messageProducer, float ref, float value)static voidassertHigher(Supplier<String> messageProducer, int ref, int value)static voidassertHigher(Supplier<String> messageProducer, long ref, long value)static voidassertHigher(Supplier<String> messageProducer, Double ref, Double value)static voidassertHigher(Supplier<String> messageProducer, Integer ref, Integer value)static voidassertHigher(Supplier<String> messageProducer, Long ref, Long value)static voidassertHigher(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)static voidassertHigherOrEquals(double ref, double value)static voidassertHigherOrEquals(float ref, float value)static voidassertHigherOrEquals(int ref, int value)static voidassertHigherOrEquals(long ref, long value)static voidassertHigherOrEquals(ErrorCode errorCode, double ref, double value)static voidassertHigherOrEquals(ErrorCode errorCode, float ref, float value)static voidassertHigherOrEquals(ErrorCode errorCode, int ref, int value)static voidassertHigherOrEquals(ErrorCode errorCode, long ref, long value)static voidassertHigherOrEquals(ErrorCode errorCode, Double ref, Double value)static voidassertHigherOrEquals(ErrorCode errorCode, Integer ref, Integer value)static voidassertHigherOrEquals(ErrorCode errorCode, Long ref, Long value)static voidassertHigherOrEquals(ErrorCode errorCode, BigDecimal ref, BigDecimal value)static voidassertHigherOrEquals(Double ref, Double value)static voidassertHigherOrEquals(Integer ref, Integer value)static voidassertHigherOrEquals(Long ref, Long value)static voidassertHigherOrEquals(String message, double ref, double value)static voidassertHigherOrEquals(String message, float ref, float value)static voidassertHigherOrEquals(String message, int ref, int value)static voidassertHigherOrEquals(String message, long ref, long value)static voidassertHigherOrEquals(String message, Double ref, Double value)static voidassertHigherOrEquals(String message, Integer ref, Integer value)static voidassertHigherOrEquals(String message, Long ref, Long value)static voidassertHigherOrEquals(String message, BigDecimal ref, BigDecimal value)static voidassertHigherOrEquals(BigDecimal ref, BigDecimal value)static voidassertHigherOrEquals(Supplier<String> messageProducer, double ref, double value)static voidassertHigherOrEquals(Supplier<String> messageProducer, float ref, float value)static voidassertHigherOrEquals(Supplier<String> messageProducer, int ref, int value)static voidassertHigherOrEquals(Supplier<String> messageProducer, long ref, long value)static voidassertHigherOrEquals(Supplier<String> messageProducer, Double ref, Double value)static voidassertHigherOrEquals(Supplier<String> messageProducer, Integer ref, Integer value)static voidassertHigherOrEquals(Supplier<String> messageProducer, Long ref, Long value)static voidassertHigherOrEquals(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)static voidassertLower(double ref, double value)static voidassertLower(float ref, float value)static voidassertLower(int ref, int value)static voidassertLower(long ref, long value)static voidassertLower(ErrorCode errorCode, double ref, double value)static voidassertLower(ErrorCode errorCode, float ref, float value)static voidassertLower(ErrorCode errorCode, int ref, int value)static voidassertLower(ErrorCode errorCode, long ref, long value)static voidassertLower(ErrorCode errorCode, Double ref, Double value)static voidassertLower(ErrorCode errorCode, Integer ref, Integer value)static voidassertLower(ErrorCode errorCode, Long ref, Long value)static voidassertLower(ErrorCode errorCode, BigDecimal ref, BigDecimal value)static voidassertLower(Double ref, Double value)static voidassertLower(Integer ref, Integer value)static voidassertLower(Long ref, Long value)static voidassertLower(String message, double ref, double value)static voidassertLower(String message, float ref, float value)static voidassertLower(String message, int ref, int value)static voidassertLower(String message, long ref, long value)static voidassertLower(String message, Double ref, Double value)static voidassertLower(String message, Integer ref, Integer value)static voidassertLower(String message, Long ref, Long value)static voidassertLower(String message, BigDecimal ref, BigDecimal value)static voidassertLower(BigDecimal ref, BigDecimal value)static voidassertLower(Supplier<String> messageProducer, double ref, double value)static voidassertLower(Supplier<String> messageProducer, float ref, float value)static voidassertLower(Supplier<String> messageProducer, int ref, int value)static voidassertLower(Supplier<String> messageProducer, long ref, long value)static voidassertLower(Supplier<String> messageProducer, Double ref, Double value)static voidassertLower(Supplier<String> messageProducer, Integer ref, Integer value)static voidassertLower(Supplier<String> messageProducer, Long ref, Long value)static voidassertLower(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)static voidassertLowerOrEquals(double ref, double value)static voidassertLowerOrEquals(float ref, float value)static voidassertLowerOrEquals(int ref, int value)static voidassertLowerOrEquals(long ref, long value)static voidassertLowerOrEquals(ErrorCode errorCode, double ref, double value)static voidassertLowerOrEquals(ErrorCode errorCode, float ref, float value)static voidassertLowerOrEquals(ErrorCode errorCode, int ref, int value)static voidassertLowerOrEquals(ErrorCode errorCode, long ref, long value)static voidassertLowerOrEquals(ErrorCode errorCode, Double ref, Double value)static voidassertLowerOrEquals(ErrorCode errorCode, Integer ref, Integer value)static voidassertLowerOrEquals(ErrorCode errorCode, Long ref, Long value)static voidassertLowerOrEquals(ErrorCode errorCode, BigDecimal ref, BigDecimal value)static voidassertLowerOrEquals(Double ref, Double value)static voidassertLowerOrEquals(Integer ref, Integer value)static voidassertLowerOrEquals(Long ref, Long value)static voidassertLowerOrEquals(String message, double ref, double value)static voidassertLowerOrEquals(String message, float ref, float value)static voidassertLowerOrEquals(String message, int ref, int value)static voidassertLowerOrEquals(String message, long ref, long value)static voidassertLowerOrEquals(String message, Double ref, Double value)static voidassertLowerOrEquals(String message, Integer ref, Integer value)static voidassertLowerOrEquals(String message, Long ref, Long value)static voidassertLowerOrEquals(String message, BigDecimal ref, BigDecimal value)static voidassertLowerOrEquals(BigDecimal ref, BigDecimal value)static voidassertLowerOrEquals(Supplier<String> messageProducer, double ref, double value)static voidassertLowerOrEquals(Supplier<String> messageProducer, float ref, float value)static voidassertLowerOrEquals(Supplier<String> messageProducer, int ref, int value)static voidassertLowerOrEquals(Supplier<String> messageProducer, long ref, long value)static voidassertLowerOrEquals(Supplier<String> messageProducer, Double ref, Double value)static voidassertLowerOrEquals(Supplier<String> messageProducer, Integer ref, Integer value)static voidassertLowerOrEquals(Supplier<String> messageProducer, Long ref, Long value)static voidassertLowerOrEquals(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)static voidassertModel(VoidFunctionWithException... assertions)static voidassertModel(List<VoidFunctionWithException> assertions)static voidassertNotEmpty(ErrorCode errorCode, IsEmptyFacet value)static voidassertNotEmpty(ErrorCode errorCode, String value)static voidassertNotEmpty(ErrorCode errorCode, Collection<?> value)static voidassertNotEmpty(ErrorCode errorCode, Map<?,?> value)static voidassertNotEmpty(IsEmptyFacet value)static voidassertNotEmpty(String value)static voidassertNotEmpty(String message, IsEmptyFacet value)static voidassertNotEmpty(String message, String value)static voidassertNotEmpty(String message, Collection<?> value)static voidassertNotEmpty(String message, Map<?,?> value)static voidassertNotEmpty(Collection<?> value)static voidassertNotEmpty(Supplier<String> messageProducer, IsEmptyFacet value)static voidassertNotEmpty(Supplier<String> messageProducer, String value)static voidassertNotEmpty(Supplier<String> messageProducer, Collection<?> value)static voidassertNotEmpty(Supplier<String> messageProducer, Map<?,?> value)static voidassertNotEmpty(Map<?,?> value)static voidassertNotEquals(double ref, double value)static voidassertNotEquals(float ref, float value)static voidassertNotEquals(int ref, int value)static voidassertNotEquals(long ref, long value)static voidassertNotEquals(ErrorCode errorCode, double ref, double value)static voidassertNotEquals(ErrorCode errorCode, float ref, float value)static voidassertNotEquals(ErrorCode errorCode, int ref, int value)static voidassertNotEquals(ErrorCode errorCode, long ref, long value)static voidassertNotEquals(ErrorCode errorCode, Object ref, Object value)static voidassertNotEquals(Object ref, Object value)static voidassertNotEquals(String message, double ref, double value)static voidassertNotEquals(String message, float ref, float value)static voidassertNotEquals(String message, int ref, int value)static voidassertNotEquals(String message, long ref, long value)static voidassertNotEquals(String message, Object ref, Object value)static voidassertNotEquals(Supplier<String> messageProducer, double ref, double value)static voidassertNotEquals(Supplier<String> messageProducer, float ref, float value)static voidassertNotEquals(Supplier<String> messageProducer, int ref, int value)static voidassertNotEquals(Supplier<String> messageProducer, long ref, long value)static voidassertNotEquals(Supplier<String> messageProducer, Object ref, Object value)static voidassertNotNull(ErrorCode errorCode, Object... values)static voidassertNotNull(Object... objects)static voidassertNotNull(String message, Object... values)static voidassertNotNull(Supplier<String> messageProducer, Object... values)static voidassertNull(ErrorCode errorCode, Object... values)static voidassertNull(String message, Object... values)static voidassertNull(Supplier<String> messageProducer, Object... values)static voidassertNullOrEmpty(ErrorCode errorCode, IsEmptyFacet value)static voidassertNullOrEmpty(ErrorCode errorCode, String value)static voidassertNullOrEmpty(ErrorCode errorCode, Collection<?> value)static voidassertNullOrEmpty(ErrorCode errorCode, Map<?,?> value)static voidassertNullOrEmpty(IsEmptyFacet value)static voidassertNullOrEmpty(String value)static voidassertNullOrEmpty(String message, IsEmptyFacet value)static voidassertNullOrEmpty(String message, String value)static voidassertNullOrEmpty(String message, Collection<?> value)static voidassertNullOrEmpty(String message, Map<?,?> value)static voidassertNullOrEmpty(Collection<?> value)static voidassertNullOrEmpty(Supplier<String> messageProducer, IsEmptyFacet value)static voidassertNullOrEmpty(Supplier<String> messageProducer, String value)static voidassertNullOrEmpty(Supplier<String> messageProducer, Collection<?> value)static voidassertNullOrEmpty(Supplier<String> messageProducer, Map<?,?> value)static voidassertNullOrEmpty(Map<?,?> value)static voidassertRegexFind(ErrorCode errorCode, String regex, String value)static voidassertRegexFind(ErrorCode errorCode, Pattern regex, String value)static voidassertRegexFind(String regex, String value)static voidassertRegexFind(String message, String regex, String value)static voidassertRegexFind(String message, Pattern regex, String value)static voidassertRegexFind(Supplier<String> messageProducer, String regex, String value)static voidassertRegexFind(Supplier<String> messageProducer, Pattern regex, String value)static voidassertRegexFind(Pattern regex, String value)static voidassertRegexMatch(ErrorCode errorCode, String regex, String value)static voidassertRegexMatch(ErrorCode errorCode, Pattern regex, String value)static voidassertRegexMatch(String regex, String value)static voidassertRegexMatch(String message, String regex, String value)static voidassertRegexMatch(String message, Pattern regex, String value)static voidassertRegexMatch(Supplier<String> messageProducer, String regex, String value)static voidassertRegexMatch(Supplier<String> messageProducer, Pattern regex, String value)static voidassertRegexMatch(Pattern regex, String value)static voidassertRegexNotFind(ErrorCode errorCode, String regex, String value)static voidassertRegexNotFind(ErrorCode errorCode, Pattern regex, String value)static voidassertRegexNotFind(String regex, String value)static voidassertRegexNotFind(String message, String regex, String value)static voidassertRegexNotFind(String message, Pattern regex, String value)static voidassertRegexNotFind(Supplier<String> messageProducer, String regex, String value)static voidassertRegexNotFind(Supplier<String> messageProducer, Pattern regex, String value)static voidassertRegexNotFind(Pattern regex, String value)static voidassertRegexNotMatch(ErrorCode errorCode, String regex, String value)static voidassertRegexNotMatch(ErrorCode errorCode, Pattern regex, String value)static voidassertRegexNotMatch(String regex, String value)static voidassertRegexNotMatch(String message, String regex, String value)static voidassertRegexNotMatch(String message, Pattern regex, String value)static voidassertRegexNotMatch(Supplier<String> messageProducer, String regex, String value)static voidassertRegexNotMatch(Supplier<String> messageProducer, Pattern regex, String value)static voidassertRegexNotMatch(Pattern regex, String value)static voidassertThrow(String message, VoidFunctionWithException function)static voidassertTrue(boolean expression)static voidassertTrue(ErrorCode errorCode, boolean expression)static voidassertTrue(String message, boolean expression)static voidassertTrue(Supplier<String> messageProducer, boolean expression)static booleancheckIsBlank(String value)static List<ErrorCode>checkModel(VoidFunctionWithException... assertions)static List<ErrorCode>checkModel(List<VoidFunctionWithException> assertions)static voidthrowException(ErrorCode errorCode)static voidthrowException(ErrorCode errorCode, String message, Serializable... args)static voidthrowException(String message)static <T> TwrapErrorForSupplier(Supplier<T> action, ErrorCode errorCode)static <T> TwrapErrorForSupplier(Supplier<T> action, ErrorCodeResolver resolver)static <T> TwrapErrorForSupplier(Supplier<T> action, ErrorCode errorCode, ErrorCodeResolver resolver)static <T> TwrapErrorForSupplierWithException(ActionWithException action, ErrorCode errorCode)static <T> TwrapErrorForSupplierWithException(ActionWithException action, ErrorCodeResolver resolver)static <T> TwrapErrorForSupplierWithException(ActionWithException action, ErrorCode errorCode, ErrorCodeResolver resolver)static voidwrapErrorForVoidFunction(VoidFunction action, ErrorCode errorCode)static voidwrapErrorForVoidFunction(VoidFunction action, ErrorCodeResolver resolver)static voidwrapErrorForVoidFunction(VoidFunction action, ErrorCode errorCode, ErrorCodeResolver resolver)static voidwrapErrorForVoidFunctionWithException(VoidFunctionWithException action, ErrorCode errorCode)static voidwrapErrorForVoidFunctionWithException(VoidFunctionWithException action, ErrorCodeResolver resolver)static voidwrapErrorForVoidFunctionWithException(VoidFunctionWithException action, ErrorCode errorCode, ErrorCodeResolver resolver)
-
-
-
Method Detail
-
assertTrue
public static void assertTrue(boolean expression)
-
assertTrue
public static void assertTrue(String message, boolean expression)
-
assertTrue
public static void assertTrue(ErrorCode errorCode, boolean expression)
-
assertFalse
public static void assertFalse(boolean expression)
-
assertFalse
public static void assertFalse(String message, boolean expression)
-
assertFalse
public static void assertFalse(ErrorCode errorCode, boolean expression)
-
assertNotNull
public static void assertNotNull(Object... objects)
-
assertNotEmpty
public static void assertNotEmpty(String value)
-
checkIsBlank
public static boolean checkIsBlank(String value)
-
assertNotEmpty
public static void assertNotEmpty(Collection<?> value)
-
assertNotEmpty
public static void assertNotEmpty(Supplier<String> messageProducer, Collection<?> value)
-
assertNotEmpty
public static void assertNotEmpty(String message, Collection<?> value)
-
assertNotEmpty
public static void assertNotEmpty(ErrorCode errorCode, Collection<?> value)
-
assertNotEmpty
public static void assertNotEmpty(IsEmptyFacet value)
-
assertNotEmpty
public static void assertNotEmpty(String message, IsEmptyFacet value)
-
assertNotEmpty
public static void assertNotEmpty(Supplier<String> messageProducer, IsEmptyFacet value)
-
assertNotEmpty
public static void assertNotEmpty(ErrorCode errorCode, IsEmptyFacet value)
-
assertNotEmpty
public static void assertNotEmpty(Map<?,?> value)
-
assertNotEmpty
public static void assertNotEmpty(Supplier<String> messageProducer, Map<?,?> value)
-
assertEmpty
public static void assertEmpty(String value)
-
assertEmpty
public static void assertEmpty(Collection<?> value)
-
assertEmpty
public static void assertEmpty(Supplier<String> messageProducer, Collection<?> value)
-
assertEmpty
public static void assertEmpty(String message, Collection<?> value)
-
assertEmpty
public static void assertEmpty(ErrorCode errorCode, Collection<?> value)
-
assertEmpty
public static void assertEmpty(Map<?,?> value)
-
assertEmpty
public static void assertEmpty(IsEmptyFacet value)
-
assertEmpty
public static void assertEmpty(Supplier<String> messageProducer, IsEmptyFacet value)
-
assertEmpty
public static void assertEmpty(String message, IsEmptyFacet value)
-
assertEmpty
public static void assertEmpty(ErrorCode errorCode, IsEmptyFacet value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(String value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(Supplier<String> messageProducer, String value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(Collection<?> value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(Supplier<String> messageProducer, Collection<?> value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(String message, Collection<?> value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(ErrorCode errorCode, Collection<?> value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(Map<?,?> value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(Supplier<String> messageProducer, Map<?,?> value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(IsEmptyFacet value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(Supplier<String> messageProducer, IsEmptyFacet value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(String message, IsEmptyFacet value)
-
assertNullOrEmpty
public static void assertNullOrEmpty(ErrorCode errorCode, IsEmptyFacet value)
-
assertEquals
public static void assertEquals(Supplier<String> messageProducer, Object ref, Object value)
-
assertEquals
public static void assertEquals(int ref, int value)
-
assertEquals
public static void assertEquals(String message, int ref, int value)
-
assertEquals
public static void assertEquals(ErrorCode errorCode, int ref, int value)
-
assertEquals
public static void assertEquals(long ref, long value)
-
assertEquals
public static void assertEquals(String message, long ref, long value)
-
assertEquals
public static void assertEquals(Supplier<String> messageProducer, long ref, long value)
-
assertEquals
public static void assertEquals(ErrorCode errorCode, long ref, long value)
-
assertEquals
public static void assertEquals(float ref, float value)
-
assertEquals
public static void assertEquals(String message, float ref, float value)
-
assertEquals
public static void assertEquals(Supplier<String> messageProducer, float ref, float value)
-
assertEquals
public static void assertEquals(ErrorCode errorCode, float ref, float value)
-
assertEquals
public static void assertEquals(double ref, double value)
-
assertEquals
public static void assertEquals(String message, double ref, double value)
-
assertEquals
public static void assertEquals(Supplier<String> messageProducer, double ref, double value)
-
assertEquals
public static void assertEquals(ErrorCode errorCode, double ref, double value)
-
assertNotEquals
public static void assertNotEquals(Supplier<String> messageProducer, Object ref, Object value)
-
assertNotEquals
public static void assertNotEquals(int ref, int value)
-
assertNotEquals
public static void assertNotEquals(String message, int ref, int value)
-
assertNotEquals
public static void assertNotEquals(Supplier<String> messageProducer, int ref, int value)
-
assertNotEquals
public static void assertNotEquals(ErrorCode errorCode, int ref, int value)
-
assertNotEquals
public static void assertNotEquals(long ref, long value)
-
assertNotEquals
public static void assertNotEquals(String message, long ref, long value)
-
assertNotEquals
public static void assertNotEquals(Supplier<String> messageProducer, long ref, long value)
-
assertNotEquals
public static void assertNotEquals(ErrorCode errorCode, long ref, long value)
-
assertNotEquals
public static void assertNotEquals(float ref, float value)
-
assertNotEquals
public static void assertNotEquals(String message, float ref, float value)
-
assertNotEquals
public static void assertNotEquals(Supplier<String> messageProducer, float ref, float value)
-
assertNotEquals
public static void assertNotEquals(ErrorCode errorCode, float ref, float value)
-
assertNotEquals
public static void assertNotEquals(double ref, double value)
-
assertNotEquals
public static void assertNotEquals(String message, double ref, double value)
-
assertNotEquals
public static void assertNotEquals(Supplier<String> messageProducer, double ref, double value)
-
assertNotEquals
public static void assertNotEquals(ErrorCode errorCode, double ref, double value)
-
assertLower
public static void assertLower(int ref, int value)
-
assertLower
public static void assertLower(String message, int ref, int value)
-
assertLower
public static void assertLower(ErrorCode errorCode, int ref, int value)
-
assertLower
public static void assertLower(long ref, long value)
-
assertLower
public static void assertLower(String message, long ref, long value)
-
assertLower
public static void assertLower(ErrorCode errorCode, long ref, long value)
-
assertLower
public static void assertLower(float ref, float value)
-
assertLower
public static void assertLower(String message, float ref, float value)
-
assertLower
public static void assertLower(Supplier<String> messageProducer, float ref, float value)
-
assertLower
public static void assertLower(ErrorCode errorCode, float ref, float value)
-
assertLower
public static void assertLower(double ref, double value)
-
assertLower
public static void assertLower(String message, double ref, double value)
-
assertLower
public static void assertLower(Supplier<String> messageProducer, double ref, double value)
-
assertLower
public static void assertLower(ErrorCode errorCode, double ref, double value)
-
assertLower
public static void assertLower(Supplier<String> messageProducer, Integer ref, Integer value)
-
assertLower
public static void assertLower(Supplier<String> messageProducer, Double ref, Double value)
-
assertLower
public static void assertLower(BigDecimal ref, BigDecimal value)
-
assertLower
public static void assertLower(String message, BigDecimal ref, BigDecimal value)
-
assertLower
public static void assertLower(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)
-
assertLower
public static void assertLower(ErrorCode errorCode, BigDecimal ref, BigDecimal value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(int ref, int value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, int ref, int value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, int ref, int value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, int ref, int value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(long ref, long value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, long ref, long value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, long ref, long value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, long ref, long value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(float ref, float value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, float ref, float value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, float ref, float value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, float ref, float value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(double ref, double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, double ref, double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, double ref, double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, double ref, double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, Integer ref, Integer value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, Integer ref, Integer value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, Integer ref, Integer value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, Long ref, Long value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, Long ref, Long value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, Double ref, Double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, Double ref, Double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, Double ref, Double value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(BigDecimal ref, BigDecimal value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(String message, BigDecimal ref, BigDecimal value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)
-
assertLowerOrEquals
public static void assertLowerOrEquals(ErrorCode errorCode, BigDecimal ref, BigDecimal value)
-
assertHigher
public static void assertHigher(int ref, int value)
-
assertHigher
public static void assertHigher(String message, int ref, int value)
-
assertHigher
public static void assertHigher(ErrorCode errorCode, int ref, int value)
-
assertHigher
public static void assertHigher(long ref, long value)
-
assertHigher
public static void assertHigher(String message, long ref, long value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, long ref, long value)
-
assertHigher
public static void assertHigher(ErrorCode errorCode, long ref, long value)
-
assertHigher
public static void assertHigher(float ref, float value)
-
assertHigher
public static void assertHigher(String message, float ref, float value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, float ref, float value)
-
assertHigher
public static void assertHigher(ErrorCode errorCode, float ref, float value)
-
assertHigher
public static void assertHigher(double ref, double value)
-
assertHigher
public static void assertHigher(String message, double ref, double value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, double ref, double value)
-
assertHigher
public static void assertHigher(ErrorCode errorCode, double ref, double value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, Integer ref, Integer value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, Long ref, Long value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, Double ref, Double value)
-
assertHigher
public static void assertHigher(BigDecimal ref, BigDecimal value)
-
assertHigher
public static void assertHigher(String message, BigDecimal ref, BigDecimal value)
-
assertHigher
public static void assertHigher(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)
-
assertHigher
public static void assertHigher(ErrorCode errorCode, BigDecimal ref, BigDecimal value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(int ref, int value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, int ref, int value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, int ref, int value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, int ref, int value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(long ref, long value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, long ref, long value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, long ref, long value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, long ref, long value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(float ref, float value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, float ref, float value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, float ref, float value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, float ref, float value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(double ref, double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, double ref, double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, double ref, double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, double ref, double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, Integer ref, Integer value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, Integer ref, Integer value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, Integer ref, Integer value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, Long ref, Long value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, Long ref, Long value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, Double ref, Double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, Double ref, Double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, Double ref, Double value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(BigDecimal ref, BigDecimal value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(String message, BigDecimal ref, BigDecimal value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(Supplier<String> messageProducer, BigDecimal ref, BigDecimal value)
-
assertHigherOrEquals
public static void assertHigherOrEquals(ErrorCode errorCode, BigDecimal ref, BigDecimal value)
-
assertRegexMatch
public static void assertRegexMatch(Supplier<String> messageProducer, Pattern regex, String value)
-
assertRegexMatch
public static void assertRegexMatch(ErrorCode errorCode, Pattern regex, String value)
-
assertRegexMatch
public static void assertRegexMatch(Supplier<String> messageProducer, String regex, String value)
-
assertRegexMatch
public static void assertRegexMatch(ErrorCode errorCode, String regex, String value)
-
assertRegexNotMatch
public static void assertRegexNotMatch(String message, Pattern regex, String value)
-
assertRegexNotMatch
public static void assertRegexNotMatch(Supplier<String> messageProducer, Pattern regex, String value)
-
assertRegexNotMatch
public static void assertRegexNotMatch(ErrorCode errorCode, Pattern regex, String value)
-
assertRegexNotMatch
public static void assertRegexNotMatch(String message, String regex, String value)
-
assertRegexNotMatch
public static void assertRegexNotMatch(Supplier<String> messageProducer, String regex, String value)
-
assertRegexNotMatch
public static void assertRegexNotMatch(ErrorCode errorCode, String regex, String value)
-
assertRegexFind
public static void assertRegexFind(Supplier<String> messageProducer, Pattern regex, String value)
-
assertRegexFind
public static void assertRegexFind(ErrorCode errorCode, Pattern regex, String value)
-
assertRegexFind
public static void assertRegexFind(Supplier<String> messageProducer, String regex, String value)
-
assertRegexFind
public static void assertRegexFind(ErrorCode errorCode, String regex, String value)
-
assertRegexNotFind
public static void assertRegexNotFind(String message, Pattern regex, String value)
-
assertRegexNotFind
public static void assertRegexNotFind(Supplier<String> messageProducer, Pattern regex, String value)
-
assertRegexNotFind
public static void assertRegexNotFind(ErrorCode errorCode, Pattern regex, String value)
-
assertRegexNotFind
public static void assertRegexNotFind(String message, String regex, String value)
-
assertRegexNotFind
public static void assertRegexNotFind(Supplier<String> messageProducer, String regex, String value)
-
assertRegexNotFind
public static void assertRegexNotFind(ErrorCode errorCode, String regex, String value)
-
checkModel
public static List<ErrorCode> checkModel(VoidFunctionWithException... assertions)
-
checkModel
public static List<ErrorCode> checkModel(List<VoidFunctionWithException> assertions)
-
assertModel
public static void assertModel(VoidFunctionWithException... assertions)
-
assertModel
public static void assertModel(List<VoidFunctionWithException> assertions)
-
assertThrow
public static void assertThrow(String message, VoidFunctionWithException function)
-
assertFileExists
public static void assertFileExists(File path)
-
assertFileReadable
public static void assertFileReadable(File path)
-
assertFileWrite
public static void assertFileWrite(File path)
-
assertFileExecutable
public static void assertFileExecutable(File path)
-
assertFolderExists
public static void assertFolderExists(File path)
-
assertBefore
public static void assertBefore(ChronoLocalDate ref, ChronoLocalDate value)
-
assertBefore
public static void assertBefore(String message, ChronoLocalDate ref, ChronoLocalDate value)
-
assertBefore
public static void assertBefore(Supplier<String> messageProducer, ChronoLocalDate ref, ChronoLocalDate value)
-
assertBefore
public static void assertBefore(ErrorCode errorCode, ChronoLocalDate ref, ChronoLocalDate value)
-
assertAfter
public static void assertAfter(ChronoLocalDate ref, ChronoLocalDate value)
-
assertAfter
public static void assertAfter(String message, ChronoLocalDate ref, ChronoLocalDate value)
-
assertAfter
public static void assertAfter(Supplier<String> messageProducer, ChronoLocalDate ref, ChronoLocalDate value)
-
assertAfter
public static void assertAfter(ErrorCode errorCode, ChronoLocalDate ref, ChronoLocalDate value)
-
assertEquals
public static void assertEquals(ChronoLocalDate ref, ChronoLocalDate value)
-
assertEquals
public static void assertEquals(String message, ChronoLocalDate ref, ChronoLocalDate value)
-
assertEquals
public static void assertEquals(Supplier<String> messageProducer, ChronoLocalDate ref, ChronoLocalDate value)
-
assertEquals
public static void assertEquals(ErrorCode errorCode, ChronoLocalDate ref, ChronoLocalDate value)
-
assertBefore
public static void assertBefore(ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertBefore
public static void assertBefore(String message, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertBefore
public static void assertBefore(Supplier<String> messageProducer, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertBefore
public static void assertBefore(ErrorCode errorCode, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertAfter
public static void assertAfter(ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertAfter
public static void assertAfter(String message, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertAfter
public static void assertAfter(Supplier<String> messageProducer, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertAfter
public static void assertAfter(ErrorCode errorCode, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertEquals
public static void assertEquals(ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertEquals
public static void assertEquals(String message, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertEquals
public static void assertEquals(Supplier<String> messageProducer, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
assertEquals
public static void assertEquals(ErrorCode errorCode, ChronoLocalDateTime<LocalDate> ref, ChronoLocalDateTime<LocalDate> value)
-
wrapErrorForSupplierWithException
public static <T> T wrapErrorForSupplierWithException(ActionWithException action, ErrorCode errorCode)
-
wrapErrorForSupplierWithException
public static <T> T wrapErrorForSupplierWithException(ActionWithException action, ErrorCodeResolver resolver)
-
wrapErrorForSupplierWithException
public static <T> T wrapErrorForSupplierWithException(ActionWithException action, ErrorCode errorCode, ErrorCodeResolver resolver)
-
wrapErrorForSupplier
public static <T> T wrapErrorForSupplier(Supplier<T> action, ErrorCode errorCode)
-
wrapErrorForSupplier
public static <T> T wrapErrorForSupplier(Supplier<T> action, ErrorCodeResolver resolver)
-
wrapErrorForSupplier
public static <T> T wrapErrorForSupplier(Supplier<T> action, ErrorCode errorCode, ErrorCodeResolver resolver)
-
wrapErrorForVoidFunction
public static void wrapErrorForVoidFunction(VoidFunction action, ErrorCode errorCode)
-
wrapErrorForVoidFunction
public static void wrapErrorForVoidFunction(VoidFunction action, ErrorCodeResolver resolver)
-
wrapErrorForVoidFunction
public static void wrapErrorForVoidFunction(VoidFunction action, ErrorCode errorCode, ErrorCodeResolver resolver)
-
wrapErrorForVoidFunctionWithException
public static void wrapErrorForVoidFunctionWithException(VoidFunctionWithException action, ErrorCode errorCode)
-
wrapErrorForVoidFunctionWithException
public static void wrapErrorForVoidFunctionWithException(VoidFunctionWithException action, ErrorCodeResolver resolver)
-
wrapErrorForVoidFunctionWithException
public static void wrapErrorForVoidFunctionWithException(VoidFunctionWithException action, ErrorCode errorCode, ErrorCodeResolver resolver)
-
throwException
public static void throwException(String message)
-
throwException
public static void throwException(ErrorCode errorCode)
-
throwException
public static void throwException(ErrorCode errorCode, String message, Serializable... args)
-
-