|
|
@@ -11,10 +11,7 @@ import scala.collection.JavaConverters._
|
|
11
|
11
|
/**
|
|
12
|
12
|
* Created by dan on 2016-09-23.
|
|
13
|
13
|
*/
|
|
14
|
|
-
|
|
15
|
|
-
|
|
16
|
14
|
case class Itinerary(legs: java.util.List[Leg]) {
|
|
17
|
|
- private val END_OF_DAYS: Date = new Date(Long.MaxValue)
|
|
18
|
15
|
|
|
19
|
16
|
require(legs != null, "Legs cannot be null")
|
|
20
|
17
|
require(!legs.contains(null), "Legs cannot have null elements")
|
|
|
@@ -57,6 +54,4 @@ case class Itinerary(legs: java.util.List[Leg]) {
|
|
57
|
54
|
new Date(legs.asScala.last.unloadTime.getTime)
|
|
58
|
55
|
}
|
|
59
|
56
|
}
|
|
60
|
|
-
|
|
61
|
|
- private val id: Long = 0L
|
|
62
|
57
|
}
|