public class LogicalDate
extends java.util.Date
| Constructor and Description |
|---|
LogicalDate() |
LogicalDate(int year,
int month,
int date)
Creates a logical date from the given year, month, and date.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Appendable |
_appendTo(java.lang.Appendable a,
java.util.Date d) |
static java.lang.StringBuilder |
_appendTo(java.lang.StringBuilder sb,
java.util.Date d) |
static java.lang.String |
_toString(java.util.Date d) |
java.lang.Appendable |
appendTo(java.lang.Appendable a)
Appends the string representation of this logical date to
a. |
java.lang.StringBuilder |
appendTo(java.lang.StringBuilder sb)
Appends the string representation of this logical date to
sb. |
LogicalDate |
clone() |
int |
compareTo(java.util.Date other) |
boolean |
equals(java.lang.Object other) |
int |
getLogicalDate()
Returns the day of month of this logical date.
|
static int |
getLogicalDate(java.util.Date d) |
int |
getLogicalMonth()
Returns the month number of this logical date.
|
int |
getLogicalYear()
Returns the year of this logical date.
|
int |
hashCode() |
java.lang.String |
toString() |
public LogicalDate()
public LogicalDate(int year,
int month,
int date)
year - the full year (2012 is the year 2012).month - month number, 0 - 11 (0 is January).date - day of month, 1 - 31.public static int getLogicalDate(java.util.Date d)
@SGWTInternal
public static java.lang.Appendable _appendTo(java.lang.Appendable a,
java.util.Date d)
throws java.io.IOException
java.io.IOException@SGWTInternal
public static java.lang.StringBuilder _appendTo(java.lang.StringBuilder sb,
java.util.Date d)
@SGWTInternal public static java.lang.String _toString(java.util.Date d)
public final int getLogicalYear()
public final int getLogicalMonth()
public final int getLogicalDate()
public LogicalDate clone()
clone in class java.util.Datepublic int compareTo(java.util.Date other)
compareTo in interface java.lang.Comparable<java.util.Date>compareTo in class java.util.Datepublic boolean equals(java.lang.Object other)
equals in class java.util.Datepublic int hashCode()
hashCode in class java.util.Datepublic java.lang.Appendable appendTo(java.lang.Appendable a)
throws java.io.IOException
a.a - where to append the string representation.ajava.io.IOException - if one of the appendTo() operations throws an IOException.public java.lang.StringBuilder appendTo(java.lang.StringBuilder sb)
sb.sb - the StringBuilder to append to.sb.public java.lang.String toString()
toString in class java.util.Date