1 25 26 29 package net.killingar.forum.internal; 30 31 import java.sql.Timestamp ; 32 33 public class TimeReport extends NamedItemImpl implements OwnerIDItem 34 { 35 public long ownerID = -1, seconds; 36 public Timestamp startTime; 37 38 public TimeReport(long _ID, long _ownerID, long _seconds, String _name, Timestamp _startTime) 39 { 40 super(_ID, _name); 41 ownerID = _ownerID; 42 seconds = _seconds; 43 name = _name; 44 startTime = _startTime; 45 } 46 47 public int compareTo(Object o) 48 { 49 return name.compareToIgnoreCase(((TimeReport)o).name); 50 } 51 52 public long getOwnerID() { return ownerID; } 53 public long getSeconds() { return seconds; } 54 public Timestamp getStartTime() { return startTime; } 55 } | Popular Tags |