Ontimize 5.2072EN

com.ontimize.gui.table
Class TableSorter.DayMonthYear

java.lang.Object
  extended bycom.ontimize.gui.table.TableSorter.DayMonthYear
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
TableSorter.MonthYear
Enclosing class:
TableSorter

protected static class TableSorter.DayMonthYear
extends java.lang.Object
implements java.lang.Comparable

Class that contains date information with day, month and year, to allow fast comparisons when sorting.


Field Summary
protected  int d
           
protected  int m
           
protected  java.lang.String rep
           
protected  int t
           
protected  long time
           
protected  int y
           
 
Constructor Summary
TableSorter.DayMonthYear(int d, int m, int y, long time)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 long getTime()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rep

protected java.lang.String rep

d

protected int d

m

protected int m

y

protected int y

t

protected int t

time

protected long time
Constructor Detail

TableSorter.DayMonthYear

public TableSorter.DayMonthYear(int d,
                                int m,
                                int y,
                                long time)
Method Detail

getTime

public long getTime()

equals

public boolean equals(java.lang.Object o)

toString

public java.lang.String toString()

compareTo

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

Ontimize