org.mdanderson.biostat.util
public class NumericValidator extends ValidationAdapter
Constructor and Description |
---|
NumericValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
accepts(Object value)
Convenience function that determines the validity of numeric data
without the caller having to have an instance of this class available.
|
boolean |
isValid(Object value)
Determines the validity of numeric data.
|
void |
setRange(double min,
double max)
Sets the allowed range of values
|
addStatusListener, changedUpdate, insertUpdate, removeStatusListener, removeUpdate, validate
public void setRange(double min, double max)
min
- minimum double value allowed (inclusive)max
- maximum double value allowed (inclusive)public boolean isValid(Object value)
isValid
in interface Validator
isValid
in class ValidationAdapter
value
- object with data to be checkedpublic static boolean accepts(Object value)
value
- data to be checkedisValid(java.lang.Object)
Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.