R
Raoul Markus
Hi,
I had to change the type of in private variable (from java.util.Date to
java.sql.Date). May I do type conversions within the getters and setters to
let the outside interface stay untouched?
i.e.
private java.sql.Date mDate;
public java.util.Date getDate() {
return new java.util.Date(mDate.getTime());
}
I had to change the type of in private variable (from java.util.Date to
java.sql.Date). May I do type conversions within the getters and setters to
let the outside interface stay untouched?
i.e.
private java.sql.Date mDate;
public java.util.Date getDate() {
return new java.util.Date(mDate.getTime());
}