HiRISE

HiRISE.HiPlan.PTF
Class NumberFieldPair<K,N extends Number>

java.lang.Object
  extended by HiRISE.HiPlan.PTF.NumberFieldPair<K,N>
All Implemented Interfaces:
FieldPair<K,N>

public final class NumberFieldPair<K,N extends Number>
extends Object
implements FieldPair<K,N>

A PTF field pair for number values. It includes a method, getDifference() for getting the numerical difference between the two values.

NOTE This class is in flux.

Version:
1.3
Author:
Christian Schaller - UA/PIRL

Field Summary
static String ID
          Class identification name with source code version and date.
 
Constructor Summary
NumberFieldPair(N value1, N value2)
           
 
Method Summary
 double getDifference()
           
 String getFieldName()
           
 K getId()
           
 N getValue1()
           
 N getValue2()
           
 void setFieldName(String fieldName)
           
 void setId(K id)
           
 void setValue1(N value)
           
 void setValue2(N value)
           
 boolean valuesDiffer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Constructor Detail

NumberFieldPair

public NumberFieldPair(N value1,
                       N value2)
Method Detail

getId

public K getId()
Specified by:
getId in interface FieldPair<K,N extends Number>

setId

public void setId(K id)
Specified by:
setId in interface FieldPair<K,N extends Number>

getFieldName

public String getFieldName()
Specified by:
getFieldName in interface FieldPair<K,N extends Number>

setFieldName

public void setFieldName(String fieldName)
Specified by:
setFieldName in interface FieldPair<K,N extends Number>

getValue1

public N getValue1()
Specified by:
getValue1 in interface FieldPair<K,N extends Number>

setValue1

public void setValue1(N value)
Specified by:
setValue1 in interface FieldPair<K,N extends Number>

getValue2

public N getValue2()
Specified by:
getValue2 in interface FieldPair<K,N extends Number>

setValue2

public void setValue2(N value)
Specified by:
setValue2 in interface FieldPair<K,N extends Number>

valuesDiffer

public boolean valuesDiffer()
Specified by:
valuesDiffer in interface FieldPair<K,N extends Number>

getDifference

public double getDifference()

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona