Class Validations


  • public final class Validations
    extends java.lang.Object
    • Method Detail

      • validateFieldNamesExist

        public static void validateFieldNamesExist​(java.lang.Class<?> type,
                                                   java.util.List<java.lang.String> givenFields,
                                                   java.util.Set<java.lang.String> actualFields)
      • validateWarnings

        public static void validateWarnings​(java.util.Set<Warning> warnings)
      • validateFields

        public static void validateFields​(java.util.Set<java.lang.String> includedFields,
                                          java.util.Set<java.lang.String> excludedFields)
      • validateNonnullFields

        public static void validateNonnullFields​(java.util.Set<java.lang.String> nonnullFields,
                                                 java.util.Set<Warning> warnings)
      • validateUnequalExamples

        public static <T> void validateUnequalExamples​(java.util.List<T> unequalExamples,
                                                       java.util.List<T> equalExamples)
      • validateRedAndBlackPrefabValues

        public static <T> void validateRedAndBlackPrefabValues​(java.lang.Class<T> type,
                                                               T red,
                                                               T black)
      • validateGenericPrefabValues

        public static <T> void validateGenericPrefabValues​(java.lang.Class<T> type,
                                                           PrefabValueFactory<T> factory,
                                                           int arity)
      • validateWarningsAndFields

        public static void validateWarningsAndFields​(java.util.Set<Warning> warnings,
                                                     java.util.Set<java.lang.String> includedFields,
                                                     java.util.Set<java.lang.String> excludedFields)
      • validateGivenAnnotations

        public static void validateGivenAnnotations​(java.lang.Class<?>... givenAnnotations)
      • validateProcessedAnnotations

        public static void validateProcessedAnnotations​(java.lang.Class<?> type,
                                                        AnnotationCache cache,
                                                        java.util.Set<Warning> warnings,
                                                        java.util.Set<java.lang.String> includedFields,
                                                        java.util.Set<java.lang.String> excludedFields)
      • validateNotNull

        public static void validateNotNull​(java.lang.Object object,
                                           java.lang.String errormessage)