@Target(value={PARAMETER,FIELD,ANNOTATION_TYPE,TYPE_USE}) @Retention(value=RUNTIME) @GeneratorConfiguration public @interface InRange
Mark a parameter of a Property
method with this annotation to constrain the values generated for the
parameter to a given range.
Different generators may use different min/max attribute pairs.
Generators that produce primitive values or values of their wrapper types
will likely want to use the attribute pairs of corresponding type.
Otherwise, a generator can use min()
and max()
, and
take on the responsibility of converting their string values to values of
the desired type.
Modifier and Type | Optional Element and Description |
---|---|
String |
format |
String |
max |
byte |
maxByte |
char |
maxChar |
double |
maxDouble |
float |
maxFloat |
int |
maxInt |
long |
maxLong |
short |
maxShort |
String |
min |
byte |
minByte |
char |
minChar |
double |
minDouble |
float |
minFloat |
int |
minInt |
long |
minLong |
short |
minShort |
public abstract String min
public abstract String max
public abstract String format
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu