com.amazon.carbonado.constraint
Class FloatConstraint.Constraint
java.lang.Object
com.amazon.carbonado.constraint.FloatConstraint.Constraint
- Enclosing class:
- FloatConstraint
public static class FloatConstraint.Constraint
- extends Object
Constraint implementation for FloatConstraint.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatConstraint.Constraint
public FloatConstraint.Constraint(Class<?> type,
String propertyName,
FloatConstraint ann)
- Parameters:
type - type of object that contains the constrained propertypropertyName - name of property with constraintann - specific annotation that binds to this constraint class
FloatConstraint.Constraint
public FloatConstraint.Constraint(Class<?> type,
String propertyName,
double min,
double max,
double[] allowed,
double[] disallowed)
- Parameters:
type - type of object that contains the constrained propertypropertyName - name of property with constraintmin - minimum allowed valuemax - maximum allowed valueallowed - optional set of allowed valuesdisallowed - optional set of disallowed values
constrain
public void constrain(double propertyValue)
constrain
public void constrain(CharSequence propertyValue)
constrain
public void constrain(char propertyValue)
constrain
public void constrain(char[] propertyValue)
Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.