package de.asideas.crowdsource.presentation;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.joda.time.DateTime;
// required for serialization
public class DateTimeWrapper {
private DateTime dateTime;
public DateTimeWrapper(DateTime dateTime) {
this.dateTime = dateTime;
}
public DateTimeWrapper() {
}
public DateTime getDateTime() {
return this.dateTime;
}
public void setDateTime(DateTime dateTime) {
this.dateTime = dateTime;
}
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}