ca.spaz.cron.user
Class UserMetrics

java.lang.Object
  extended by ca.spaz.cron.user.UserMetrics
All Implemented Interfaces:
java.lang.Comparable

public class UserMetrics
extends java.lang.Object
implements java.lang.Comparable


Constructor Summary
UserMetrics()
          Create a new UserMetrics object with the current time as its date;
UserMetrics(java.util.Date date)
          Create a new UserMetrics object with the specified time as its date;
 
Method Summary
 void addMetric(Metric metric)
          Add a new metric to the list.
 int compareTo(java.lang.Object arg0)
           
 boolean equals(java.lang.Object o)
           
 java.util.Date getMetricDate()
          Get the date of this set of metrics.
 java.util.List getMetrics()
          Get a list of the metrics in this object.
 int hashCode()
           
 void removeMetric(Metric metric)
          Remove a metric from the list.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserMetrics

public UserMetrics()
Create a new UserMetrics object with the current time as its date;


UserMetrics

public UserMetrics(java.util.Date date)
Create a new UserMetrics object with the specified time as its date;

Parameters:
date - The time of this set of metrics.
Method Detail

getMetricDate

public java.util.Date getMetricDate()
Get the date of this set of metrics.

Returns:
a Date object for the metrics.

getMetrics

public java.util.List getMetrics()
Get a list of the metrics in this object. The list will not be modifiable.

Returns:
a List of metrics for this object.

addMetric

public void addMetric(Metric metric)
Add a new metric to the list.

Parameters:
metric - the Metric to add.

removeMetric

public void removeMetric(Metric metric)
Remove a metric from the list.

Parameters:
metric - the Metric to remove.

compareTo

public int compareTo(java.lang.Object arg0)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2005 Spaz. All Rights Reserved.