public class DateTickUnitType
extends java.lang.Object
implements java.io.Serializable
DateTickUnit instance.| Modifier and Type | Field and Description |
|---|---|
private int |
calendarField
The corresponding field value in Java's Calendar class.
|
static DateTickUnitType |
DAY
Day.
|
static DateTickUnitType |
HOUR
Hour.
|
static DateTickUnitType |
MILLISECOND
Millisecond.
|
static DateTickUnitType |
MINUTE
Minute.
|
static DateTickUnitType |
MONTH
Month.
|
private java.lang.String |
name
The name.
|
static DateTickUnitType |
SECOND
Second.
|
static DateTickUnitType |
YEAR
Year.
|
| Modifier | Constructor and Description |
|---|---|
private |
DateTickUnitType(java.lang.String name,
int calendarField)
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if this object is equal to the specified
object, and false otherwise. |
int |
getCalendarField()
Returns the calendar field.
|
private java.lang.Object |
readResolve()
Ensures that serialization returns the unique instances.
|
java.lang.String |
toString()
Returns a string representing the object.
|
public static final DateTickUnitType YEAR
public static final DateTickUnitType MONTH
public static final DateTickUnitType DAY
public static final DateTickUnitType HOUR
public static final DateTickUnitType MINUTE
public static final DateTickUnitType SECOND
public static final DateTickUnitType MILLISECOND
private java.lang.String name
private int calendarField
private DateTickUnitType(java.lang.String name,
int calendarField)
name - the name.calendarField - the calendar field.public int getCalendarField()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
true if this object is equal to the specified
object, and false otherwise.equals in class java.lang.Objectobj - the other object.private java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - if there is a problem.