|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.in.ValueProcessor visad.data.in.ValueUnpacker visad.data.in.OffsetUnpacker
public final class OffsetUnpacker
Provides support for unpacking data values by adding a constant offset to them.
Instances are immutable.
Field Summary |
---|
Fields inherited from class visad.data.in.ValueProcessor |
---|
trivialProcessor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicates if this instance is semantically identical to another object. |
int |
hashCode()
Returns the hash code of this instance. |
static OffsetUnpacker |
offsetUnpacker(double offset)
Returns an instance of this class corresponding to an offset value. |
double |
process(double value)
Process a value. |
double[] |
process(double[] values)
Process values. |
float |
process(float value)
Process a value. |
float[] |
process(float[] values)
Process values. |
Methods inherited from class visad.data.in.ValueUnpacker |
---|
getIncrement, valueUnpacker |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OffsetUnpacker offsetUnpacker(double offset)
offset
- The numeric offset to be added to each value
during processing.
public float process(float value)
process
in class ValueProcessor
value
- The value to be processed.
public double process(double value)
process
in class ValueProcessor
value
- The value to be processed.
public float[] process(float[] values)
process
in class ValueProcessor
values
- The values to be processed.
public double[] process(double[] values)
process
in class ValueProcessor
values
- The values to be processed.
public boolean equals(Object obj)
equals
in class Object
obj
- 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 |