com.rational.test.ft.value
Class DateWrapper
java.lang.Object
java.util.Date
com.rational.test.ft.value.DateWrapper
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>
public class DateWrapper
- extends java.util.Date
Overlaps the Date properties so that a more interesting toString method can be provided
for Date properties. This allows the Date to be compared to a RegularExpression
in an interesting way.
- Since:
- RFT1.0
- See Also:
- Serialized Form
|
Field Summary |
static com.rational.test.ft.util.FtDebug |
debug
|
|
Constructor Summary |
DateWrapper()
|
DateWrapper(int year,
int month,
int date)
|
DateWrapper(int year,
int month,
int date,
int hrs,
int min)
|
DateWrapper(int year,
int month,
int date,
int hrs,
int min,
int sec)
|
DateWrapper(long date)
|
DateWrapper(java.lang.String s)
|
|
Method Summary |
boolean |
equals(java.lang.Object right)
Overrides the default equals method so that Date properties can be compared
in an interesting way. |
java.lang.String |
toString()
Overrides the default toString method so that Date properties can be compared
in a RegularExpression in an interesting way. |
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
debug
public static final com.rational.test.ft.util.FtDebug debug
DateWrapper
public DateWrapper()
DateWrapper
public DateWrapper(long date)
DateWrapper
public DateWrapper(int year,
int month,
int date)
DateWrapper
public DateWrapper(int year,
int month,
int date,
int hrs,
int min)
DateWrapper
public DateWrapper(int year,
int month,
int date,
int hrs,
int min,
int sec)
DateWrapper
public DateWrapper(java.lang.String s)
toString
public java.lang.String toString()
- Overrides the default
toString method so that Date properties can be compared
in a RegularExpression in an interesting way.
- Overrides:
toString in class java.util.Date
- Since:
- RFT1.0
equals
public boolean equals(java.lang.Object right)
- Overrides the default
equals method so that Date properties can be compared
in an interesting way.
- Overrides:
equals in class java.util.Date
- Since:
- RFT1.0