public static class LengthConstraint.Constraint
extends java.lang.Object
LengthConstraint
.Constructor and Description |
---|
LengthConstraint.Constraint(java.lang.Class<?> type,
java.lang.String propertyName,
int min,
int max) |
LengthConstraint.Constraint(java.lang.Class<?> type,
java.lang.String propertyName,
LengthConstraint ann) |
Modifier and Type | Method and Description |
---|---|
void |
constrain(boolean[] array) |
void |
constrain(byte[] array) |
void |
constrain(char[] array) |
void |
constrain(java.lang.CharSequence str) |
void |
constrain(double[] array) |
void |
constrain(float[] array) |
void |
constrain(int[] array) |
void |
constrain(long[] array) |
void |
constrain(java.lang.Object[] array) |
void |
constrain(short[] array) |
public LengthConstraint.Constraint(java.lang.Class<?> type, java.lang.String propertyName, LengthConstraint ann)
type
- type of object that contains the constrained propertypropertyName
- name of property with constraintann
- specific annotation that binds to this constraint classpublic LengthConstraint.Constraint(java.lang.Class<?> type, java.lang.String propertyName, int min, int max)
type
- type of object that contains the constrained propertypropertyName
- name of property with constraintmin
- minimum allowed lengthmax
- maximum allowed lengthpublic void constrain(java.lang.CharSequence str)
public void constrain(boolean[] array)
public void constrain(byte[] array)
public void constrain(short[] array)
public void constrain(char[] array)
public void constrain(int[] array)
public void constrain(long[] array)
public void constrain(float[] array)
public void constrain(double[] array)
public void constrain(java.lang.Object[] array)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.