org.chronicj
Class DatePrecision
java.lang.Object
|
+--org.chronicj.DatePrecision
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public abstract class DatePrecision
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
Constants used for expressing date precision when working with ChronicJ
components. Implemented using the
Typesafe Enum pattern popularized by Joshua Bloch.
- Author:
- Matthew Lipper
- See Also:
- Serialized Form
|
Field Summary |
static org.chronicj.DatePrecision |
DATE
|
static org.chronicj.DatePrecision |
HOUR_OF_DAY
|
static org.chronicj.DatePrecision |
MILLISECOND
|
static org.chronicj.DatePrecision |
MINUTE
|
static org.chronicj.DatePrecision |
MONTH
|
static org.chronicj.DatePrecision |
SECOND
|
static java.util.List |
VALUES
|
static org.chronicj.DatePrecision |
YEAR
|
|
Method Summary |
int |
compareTo(java.lang.Object arg)
|
boolean |
greaterThan(org.chronicj.DatePrecision another)
|
boolean |
lessThan(org.chronicj.DatePrecision another)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
YEAR
public static final org.chronicj.DatePrecision YEAR
MONTH
public static final org.chronicj.DatePrecision MONTH
DATE
public static final org.chronicj.DatePrecision DATE
HOUR_OF_DAY
public static final org.chronicj.DatePrecision HOUR_OF_DAY
MINUTE
public static final org.chronicj.DatePrecision MINUTE
SECOND
public static final org.chronicj.DatePrecision SECOND
MILLISECOND
public static final org.chronicj.DatePrecision MILLISECOND
VALUES
public static final java.util.List VALUES
compareTo
public int compareTo(java.lang.Object arg)
- Specified by:
compareTo in interface java.lang.Comparable
greaterThan
public boolean greaterThan(org.chronicj.DatePrecision another)
lessThan
public boolean lessThan(org.chronicj.DatePrecision another)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2003-2004 Digital Clash Software. All Rights Reserved.