com.rubecula.darwin.domain.environment
Class Variant_Numeric

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.helper.Attribute_
          extended by com.rubecula.darwin.domain.environment.Variant_
              extended by com.rubecula.darwin.domain.environment.Variant_Basic
                  extended by com.rubecula.darwin.domain.environment.Variant_Numeric
All Implemented Interfaces:
Attribute, Quantifiable, Variant, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public final class Variant_Numeric
extends Variant_Basic
implements Quantifiable

Numerical Variant. The various variants are based on actual Number values.

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.domain.environment.Variant_
LOG
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Constructor Summary
Variant_Numeric(java.lang.Number value)
           
Variant_Numeric(java.lang.String key, java.lang.Number value)
           
 
Method Summary
 double doubleValue()
           
 
Methods inherited from class com.rubecula.darwin.domain.environment.Variant_
getCharacter, setCharacter
 
Methods inherited from class com.rubecula.darwin.domain.helper.Attribute_
equals, getAttribute, getIdentifier, getValue, hashCode, setValue, toString
 
Methods inherited from class net.sf.tostring0.AToString
toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rubecula.darwin.domain.helper.Attribute
getAttribute, getValue, setValue
 
Methods inherited from interface net.sf.tostring0.IToString
toString, toStringBrief, toStringId
 
Methods inherited from interface net.sf.tostring0.Identifiable
getIdentifier
 

Constructor Detail

Variant_Numeric

public Variant_Numeric(java.lang.Number value)
Parameters:
value -

Variant_Numeric

public Variant_Numeric(java.lang.String key,
                       java.lang.Number value)
Parameters:
key -
value -
Method Detail

doubleValue

public double doubleValue()
Specified by:
doubleValue in interface Quantifiable
Returns:
the value of this variant expressed as a double.
See Also:
Attribute_.getValue()


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.