Package org.instancio.internal
Class ApiValidator
java.lang.Object
org.instancio.internal.ApiValidator
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static <T> Collection<T>
notEmpty
(Collection<T> collection, String message, Object... values) static <T> T[]
static void
validateConcreteClass
(Class<?> klass) static void
static void
validateGeneratorUsage
(Node node, Generator<?> generator) static <T> Class<T>
validateRootClass
(Class<T> klass) static void
validateSettingKey
(SettingKey key, Object value) static void
validateSubtypeMapping
(Class<?> from, Class<?> to) static void
static void
validateTypeParameters
(Class<?> rootClass, List<Class<?>> rootTypeParameters) static Type
validateTypeToken
(TypeTokenSupplier<?> typeTokenSupplier)
-
Method Details
-
validateRootClass
-
validateTypeToken
-
validateTypeParameters
-
validateSubtypeMapping
-
validateConcreteClass
-
validateSettingKey
-
notEmpty
-
notEmpty
public static <T> Collection<T> notEmpty(@Nullable Collection<T> collection, String message, Object... values) -
validateGeneratorUsage
-
validateGeneratorFunction
-
validateSupplierOrGenerator
-
isTrue
-