|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.utils.bean.IntDate
public final class IntDate
This class represent an int data in format yyyymmdd.
Nested Class Summary | |
---|---|
static class |
IntDate.Fields
This internal class contains all the different fields of an IntDate. |
Constructor Summary | |
---|---|
IntDate(int date)
Construct a new int date from the int representation of the date. |
|
IntDate(IntDate value)
Construct a new IntDate from an another one. |
Method Summary | |
---|---|
void |
add(int field,
int toAdd)
Add a value to specified field of the date. |
int |
compareTo(IntDate o)
|
boolean |
equals(Object o)
|
int |
getDay()
Return the day. |
int |
getMonth()
Return the month. |
String |
getStrDate()
Return the String representation of the date. |
int |
getYear()
Return the year. |
int |
hashCode()
|
int |
intValue()
Return the int value of the date. |
void |
set(int field,
int value)
Set the value of a specified field of the date. |
static IntDate |
today()
Return the IntDate of today. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntDate(int date)
date
- The int representation (yyyymmdd) of the date.public IntDate(IntDate value)
value
- The another IntDate.Method Detail |
---|
public int getDay()
public int getYear()
public int getMonth()
public void add(int field, int toAdd)
field
- The field to add the value to.toAdd
- The value to add.
IllegalArgumentException
- if the specified field is not valid.public void set(int field, int value)
field
- The field to set the value to.value
- The value to set to the field.public String getStrDate()
String
representation of the date.
String
representing the date.public static IntDate today()
public int intValue()
public int compareTo(IntDate o)
compareTo
in interface Comparable<IntDate>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |