|
|
@@ -1,10 +1,10 @@
|
|
1
|
1
|
package se.citerus.dddsample.domain;
|
|
2
|
2
|
|
|
3
|
|
-import java.util.Date;
|
|
4
|
|
-
|
|
5
|
3
|
import org.apache.commons.lang.builder.EqualsBuilder;
|
|
6
|
4
|
import org.apache.commons.lang.builder.HashCodeBuilder;
|
|
7
|
5
|
|
|
|
6
|
+import java.util.Date;
|
|
|
7
|
+
|
|
8
|
8
|
/**
|
|
9
|
9
|
* HandlingEvent links the type of handling with a CarrierMovement.
|
|
10
|
10
|
*
|
|
|
@@ -20,7 +20,7 @@ public class HandlingEvent implements Comparable<HandlingEvent> {
|
|
20
|
20
|
private final Date time;
|
|
21
|
21
|
|
|
22
|
22
|
public enum Type {
|
|
23
|
|
- ON, OFF;
|
|
|
23
|
+ LOAD, UNLOAD
|
|
24
|
24
|
}
|
|
25
|
25
|
|
|
26
|
26
|
public HandlingEvent(Date time, Type type, CarrierMovement carrierMovement) {
|