public abstract class Policy extends Object implements Serializable
| Constructor and Description |
|---|
Policy() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAtLeast(double minimum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
double value) |
static void |
checkAtLeast(long minimum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
long value) |
static void |
checkAtLeast(String attribute1,
long minimum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute2,
long value) |
static void |
checkAtMost(double maximum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
double value) |
static void |
checkReturnsSameAs(Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
Class<?> valueType,
String valueMethodName,
Class<?>... valueParameterTypes) |
static void |
checkReturnsSameAs(Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
Method value) |
protected static String |
describe(Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute) |
static boolean |
isCaught(Exception ex,
Class<? extends Throwable>[] caught) |
public static void checkAtLeast(long minimum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
long value)
public static void checkAtLeast(double minimum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
double value)
public static void checkAtLeast(String attribute1, long minimum, Method annotatedMethod, Class<? extends Annotation> annotationType, String attribute2, long value)
public static void checkAtMost(double maximum,
Method annotatedMethod,
Class<? extends Annotation> annotationType,
String attribute,
double value)
public static void checkReturnsSameAs(Method annotatedMethod, Class<? extends Annotation> annotationType, String attribute, Class<?> valueType, String valueMethodName, Class<?>... valueParameterTypes)
public static void checkReturnsSameAs(Method annotatedMethod, Class<? extends Annotation> annotationType, String attribute, Method value)
protected static String describe(Method annotatedMethod, Class<? extends Annotation> annotationType, String attribute)
Copyright © 2019. All rights reserved.