Class Policy

    • Constructor Detail

      • Policy

        public Policy()
    • Method Detail

      • checkAtLeast

        public static void checkAtLeast​(long minimum,
                                        Method annotatedMethod,
                                        Class<? extends Annotation> annotationType,
                                        String attribute,
                                        long value)
      • checkAtLeast

        public static void checkAtLeast​(double minimum,
                                        Method annotatedMethod,
                                        Class<? extends Annotation> annotationType,
                                        String attribute,
                                        double value)
      • checkAtLeast

        public static void checkAtLeast​(String attribute1,
                                        long minimum,
                                        Method annotatedMethod,
                                        Class<? extends Annotation> annotationType,
                                        String attribute2,
                                        long value)
      • checkAtMost

        public static void checkAtMost​(double maximum,
                                       Method annotatedMethod,
                                       Class<? extends Annotation> annotationType,
                                       String attribute,
                                       double value)
      • checkReturnsSameAs

        public static void checkReturnsSameAs​(Method annotatedMethod,
                                              Class<? extends Annotation> annotationType,
                                              String attribute,
                                              Class<?> valueType,
                                              String valueMethodName,
                                              Class<?>... valueParameterTypes)
      • checkReturnsSameAs

        public static void checkReturnsSameAs​(Method annotatedMethod,
                                              Class<? extends Annotation> annotationType,
                                              String attribute,
                                              Method value)