mx4j.tools.stats

Class PointTime

Implemented Interfaces:
Comparable

public class PointTime
extends java.lang.Object
implements Comparable

Class PointTime encapsulates the time and order of a value. We want to index the recorded time but in the event of a repeated time, it will have another index which should be unique. The class is Comparable and the order is given first by the date and if those are equals by the index
Version:
$Revision: 1.3 $

Constructor Summary

PointTime(Date date, long index)

Method Summary

int
compareTo(Object o)
boolean
equals(Object o)
Date
getDate()
long
getIndex()

Constructor Details

PointTime

public PointTime(Date date,
                 long index)

Method Details

compareTo

public int compareTo(Object o)

equals

public boolean equals(Object o)

getDate

public Date getDate()

getIndex

public long getIndex()

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.