mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
remove identity of BreakActivity
This commit is contained in:
parent
0dfcd960fe
commit
92b1ad453c
1 changed files with 1 additions and 32 deletions
|
|
@ -94,38 +94,7 @@ public class BreakActivity extends AbstractActivity implements TourActivity.JobA
|
||||||
this.latest = breakActivity.getTheoreticalLatestOperationStartTime();
|
this.latest = breakActivity.getTheoreticalLatestOperationStartTime();
|
||||||
this.duration = breakActivity.getOperationTime();
|
this.duration = breakActivity.getOperationTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#hashCode()
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
final int prime = 31;
|
|
||||||
int result = 1;
|
|
||||||
result = prime * result + ((aBreak == null) ? 0 : aBreak.hashCode());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object obj) {
|
|
||||||
if (this == obj)
|
|
||||||
return true;
|
|
||||||
if (obj == null)
|
|
||||||
return false;
|
|
||||||
if (getClass() != obj.getClass())
|
|
||||||
return false;
|
|
||||||
BreakActivity other = (BreakActivity) obj;
|
|
||||||
if (aBreak == null) {
|
|
||||||
if (other.aBreak != null)
|
|
||||||
return false;
|
|
||||||
} else if (!aBreak.equals(other.aBreak))
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public double getTheoreticalEarliestOperationStartTime() {
|
public double getTheoreticalEarliestOperationStartTime() {
|
||||||
return earliest;
|
return earliest;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue