|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.citerus.dddsample.domain.model.cargo.Itinerary
public class Itinerary
An itinerary.
| Constructor Summary | |
|---|---|
Itinerary(java.util.List<Leg> legs)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
isExpected(HandlingEvent event)
Test if the given handling event is expected when executing this itinerary. |
java.util.List<Leg> |
legs()
|
boolean |
sameValueAs(Itinerary other)
Value objects compare by the values of their attributes, they don't have an identity. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Itinerary(java.util.List<Leg> legs)
legs - List of legs for this itinerary.| Method Detail |
|---|
public java.util.List<Leg> legs()
public boolean isExpected(HandlingEvent event)
event - Event to test.
true if the event is expectedpublic boolean sameValueAs(Itinerary other)
ValueObject
sameValueAs in interface ValueObject<Itinerary>other - itinerary to compare
true if the legs in this and the other itinerary are all equal.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||