|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRepository.DateArch
Key of the TreeMap used for date sorted display. Implements Comparable consistent with equals.
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Field Summary | |
(package private) java.lang.String |
arch
Archive name |
(package private) java.lang.String |
date
Date when the archive was published |
(package private) boolean |
order
true if ascending order of date |
Constructor Summary | |
(package private) |
DateArch(java.lang.String date,
java.lang.String arch,
boolean order)
Constructor. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Method of the Comparable interface. |
boolean |
equals(java.lang.Object o)
Method of Object overriden to be consistent with compareTo. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String date
java.lang.String arch
boolean order
Constructor Detail |
DateArch(java.lang.String date, java.lang.String arch, boolean order)
date
- date when the archive was publishedarch
- archive nameorder
- true if ascending order of dateMethod Detail |
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
o
- object to compare
java.lang.ClassCastException
public boolean equals(java.lang.Object o)
o
- object to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |