|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.knowcenter.wag.egov.egiz.pdf.EGIZDate
public class EGIZDate
Represents a signature date and the signing time as can be found in the SIG_DATE field.
This is used to compare date values of signatures.
Field Summary | |
---|---|
protected int |
day
The day. |
protected int |
hour
The hour. |
protected int |
minute
The minute. |
protected int |
month
The month. |
protected int |
second
The second. |
protected int |
year
The year. |
Constructor Summary | |
---|---|
EGIZDate(int year,
int month,
int day,
int hour,
int minute,
int second)
Constructor that fills the date with values. |
Method Summary | |
---|---|
int |
compareTo(EGIZDate other)
Compares this EGIZDate to another EXIZDate. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
static EGIZDate |
parseFromString(String date_value)
Parses the date information from a given date value. |
protected long |
toCompareableLong()
Converts the date to a long integer. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int year
protected int month
protected int day
protected int hour
protected int minute
protected int second
Constructor Detail |
---|
public EGIZDate(int year, int month, int day, int hour, int minute, int second)
year
- The year.month
- The month.day
- The day.hour
- The hour.minute
- The minute.second
- The second.Method Detail |
---|
public static EGIZDate parseFromString(String date_value)
Usually the date value is one extracted from the value of the SIG_DATE field.
date_value
- The date value String.
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
protected long toCompareableLong()
An earlier date is lower than a later date.
E.g. a date in 1999 will get a smaller number than a date in 2006.
public int compareTo(EGIZDate other)
other
- The other EGIZDate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |