|
|
@ -35,12 +35,15 @@ public class DateInterval { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean equals(Object obj) { |
|
|
|
public boolean equals(Object obj) { |
|
|
|
if (this == o) return true; |
|
|
|
if (obj == null || getClass() != obj.getClass()) { |
|
|
|
if (o == null || getClass() != o.getClass()) return false; |
|
|
|
return false; |
|
|
|
DateInterval that = (DateInterval) o; |
|
|
|
} else if (this == obj) { |
|
|
|
return startTime.equals(that.startTime) && |
|
|
|
return true; |
|
|
|
endTime.equals(that.endTime); |
|
|
|
} else { |
|
|
|
|
|
|
|
DateInterval that = (DateInterval) obj; |
|
|
|
|
|
|
|
return startTime.equals(that.startTime) && |
|
|
|
|
|
|
|
endTime.equals(that.endTime); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Date getStartTime() { |
|
|
|
public Date getStartTime() { |
|
|
|