com.amazon.carbonado.constraint
Class FloatConstraint.Constraint

java.lang.Object
  extended by com.amazon.carbonado.constraint.FloatConstraint.Constraint
Enclosing class:
FloatConstraint

public static class FloatConstraint.Constraint
extends Object

Constraint implementation for FloatConstraint.


Constructor Summary
FloatConstraint.Constraint(Class<?> type, String propertyName, double min, double max, double[] allowed, double[] disallowed)
           
FloatConstraint.Constraint(Class<?> type, String propertyName, FloatConstraint ann)
           
 
Method Summary
 void constrain(char propertyValue)
           
 void constrain(char[] propertyValue)
           
 void constrain(CharSequence propertyValue)
           
 void constrain(double propertyValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatConstraint.Constraint

public FloatConstraint.Constraint(Class<?> type,
                                  String propertyName,
                                  FloatConstraint ann)
Parameters:
type - type of object that contains the constrained property
propertyName - name of property with constraint
ann - 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 property
propertyName - name of property with constraint
min - minimum allowed value
max - maximum allowed value
allowed - optional set of allowed values
disallowed - optional set of disallowed values
Method Detail

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.