celeboss.data
Class PercentChangableValue

java.lang.Object
  extended byceleboss.data.ChangableValue
      extended byceleboss.data.PercentChangableValue
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class PercentChangableValue
extends ChangableValue

This is a subclass that represents a Percentage vlaue that changes over time. These are fraction value represention of the percentage so for example 100% has the float value of 1.0; 50% has value 0.5.

Version:
1.0
Author:
bevans
See Also:
Serialized Form

Field Summary
 
Fields inherited from class celeboss.data.ChangableValue
DECREASING, INCREASING, NOCHANGE
 
Constructor Summary
PercentChangableValue(float initalValue)
          Constract with the initial value
 
Method Summary
 java.text.NumberFormat getDefaultFormat()
          Format to use for toString method.
 
Methods inherited from class celeboss.data.ChangableValue
compareTo, equals, getChangedOn, getIncreasing, getMaximumAge, getOldValue, getValue, hashCode, resetValue, setFormat, setMaximumAge, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PercentChangableValue

public PercentChangableValue(float initalValue)
Constract with the initial value

Parameters:
initalValue -
Method Detail

getDefaultFormat

public java.text.NumberFormat getDefaultFormat()
Format to use for toString method.

Overrides:
getDefaultFormat in class ChangableValue
Returns:
Number format.