javax.validation.constraints
Annotation Type Digits
@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(value=RUNTIME)
@Documented
@Constraint(validatedBy={})
public @interface Digits
The annotated element must be a number within accepted range
 Supported types are:
 
 BigDecimal 
 BigInteger 
 String 
 byte, short, int, long,
 and their respective wrapper types 
 
 
 null elements are considered valid
- Author:
 
  - Emmanuel Bernard
 
 
 
integer
public abstract int integer
 
- Returns:
 - maximum number of integral digits accepted for this number.
 
fraction
public abstract int fraction
 
- Returns:
 - maximum number of fractional digits accepted for this number.
 
message
public abstract java.lang.String message
 
- Default:
 - "{javax.validation.constraints.Digits.message}"
 
groups
public abstract java.lang.Class<?>[] groups
 
- Default:
 - {}
 
payload
public abstract java.lang.Class<? extends Payload>[] payload
 
- Default:
 - {}
 
Submit a bug or feature  Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.  
 Generated on 10-February-2011 12:41