| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.in.ValueProcessor
visad.data.in.ValueRanger
public class ValueRanger
Provides support for ranging data values (i.e. checking to see that they lie within a valid range).
Instances are immutable.
| Field Summary | 
|---|
| Fields inherited from class visad.data.in.ValueProcessor | 
|---|
| trivialProcessor | 
| Constructor Summary | |
|---|---|
| protected  | ValueRanger()Constructs from nothing. | 
| Method Summary | |
|---|---|
|  boolean | equals(Object obj)Indicates if this instance is semantically identical to another object. | 
|  double | getMax()Returns the maximum, valid value. | 
|  double | getMin()Returns the minimum, valid value. | 
|  int | hashCode()Returns the hash code of this instance. | 
|  double | process(double value)Ranges a value. | 
|  double[] | process(double[] values)Ranges values. | 
|  float | process(float value)Ranges a value. | 
|  float[] | process(float[] values)Ranges values. | 
| static ValueRanger | valueRanger(double lower,
            double upper)Returns an instance of this class corresponding to valid-range limits. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected ValueRanger()
| Method Detail | 
|---|
public static ValueRanger valueRanger(double lower,
                                      double upper)
lower - The lower limit of the valid range.  May be
                                NaN or Double.NEGATIVE_INFINITY to indicate
                                no limit.upper - The upper limit of the valid range.  May be
                                NaN or Double.POSITIVE_INFINITY to indicate
                                no limit.public double getMin()
public double getMax()
public float process(float value)
process in class ValueProcessorvalue - The value to be processed.
public double process(double value)
process in class ValueProcessorvalue - The values to be processed.
public float[] process(float[] values)
process in class ValueProcessorvalues - The value to be processed.
public double[] process(double[] values)
process in class ValueProcessorvalues - The values to be processed.
public boolean equals(Object obj)
equals in class Objectobj - The other object.
true if and only if this instance
                                is semantically identical to the other object.public int hashCode()
hashCode in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||