in ch-commons-util/src/main/java/com/cloudhopper/commons/util/time/DateTimePeriod.java [380:400]
public boolean equals(Object object) {
if (!(object instanceof DateTimePeriod)) {
throw new ClassCastException("Can only compare with other DateTimePeriod instances");
}
DateTimePeriod otherPeriod = (DateTimePeriod)object;
if (this.start == null && otherPeriod.start != null) {
return false;
}
if (this.end == null && otherPeriod.end != null) {
return false;
}
if (this.start.equals(otherPeriod.start) && this.end.equals(otherPeriod.end)) {
return true;
}
return true;
}