21 package org.matsim.facilities;
26 import com.google.common.base.Preconditions;
57 else if (this.startTime == other.
getEndTime()) {
104 public final boolean equals(
final Object o) {
117 return (Double.hashCode(
this.startTime)
118 + Double.hashCode(this.endTime));
122 Preconditions.checkState(startTime != Double.POSITIVE_INFINITY);
123 Preconditions.checkState(endTime != Double.NEGATIVE_INFINITY);
124 Preconditions.checkState(this.startTime < this.endTime,
125 "[startTime=%s] >= [endTime=%s] not allowed]", this.startTime, this.endTime);
134 this.startTime = start_time;
140 this.endTime = end_time;
164 return "[startTime=" +
Time.
writeTime(this.startTime) +
"]" +
double orElse(double other)
final boolean equals(final Object o)
final void setStartTime(final double start_time)
final double getEndTime()
OpeningTimeImpl(final double startTime, final double endTime)
int compareTo(OpeningTime other)
final void setEndTime(final double end_time)
final double getStartTime()
static final String writeTime(final double seconds, final String timeformat)
final void validateTimes()
static OpeningTime createFromOptionalTimes(OptionalTime start, OptionalTime end)