org.jdesktop.wonderland.client.cell
Class CellStatistics.LongCellStat

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.CellStatistics.CellStat
      extended by org.jdesktop.wonderland.client.cell.CellStatistics.LongCellStat
Direct Known Subclasses:
CellStatistics.SizeCellStat, CellStatistics.TimeCellStat
Enclosing class:
CellStatistics

public static class CellStatistics.LongCellStat
extends CellStatistics.CellStat

A mutable statistic that returns a long as its value


Constructor Summary
CellStatistics.LongCellStat(java.lang.String id)
           
CellStatistics.LongCellStat(java.lang.String id, java.lang.String desc)
           
CellStatistics.LongCellStat(java.lang.String id, java.lang.String desc, long initialValue)
           
 
Method Summary
 java.lang.Long changeValue(java.lang.Long amount)
          Change the value by the given amount (positive or negative)
 long getLongValue()
           
 java.lang.String getValue()
          Get the value of this statistic.
 void setValue(java.lang.Long value)
           
 
Methods inherited from class org.jdesktop.wonderland.client.cell.CellStatistics.CellStat
equals, getDescription, getId, hashCode, setDescription
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellStatistics.LongCellStat

public CellStatistics.LongCellStat(java.lang.String id)

CellStatistics.LongCellStat

public CellStatistics.LongCellStat(java.lang.String id,
                                   java.lang.String desc)

CellStatistics.LongCellStat

public CellStatistics.LongCellStat(java.lang.String id,
                                   java.lang.String desc,
                                   long initialValue)
Method Detail

getValue

public java.lang.String getValue()
Description copied from class: CellStatistics.CellStat
Get the value of this statistic. Subclasses must override this method to return a reasonable string representation of the statistic.

Specified by:
getValue in class CellStatistics.CellStat

getLongValue

public long getLongValue()

setValue

public void setValue(java.lang.Long value)

changeValue

public java.lang.Long changeValue(java.lang.Long amount)
Change the value by the given amount (positive or negative)

Parameters:
amount - the amount to change the value by
Returns:
the new value after adjustment


Open Wonderland - http://openwonderland.org