|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.citerus.dddsample.domain.model.voyage.Voyage.Builder
public static final class Voyage.Builder
Builder pattern is used for incremental construction of a Voyage aggregate. This serves as an aggregate factory.
Constructor Summary | |
---|---|
Voyage.Builder(VoyageNumber voyageNumber,
Location departureLocation)
|
Method Summary | |
---|---|
Voyage.Builder |
addMovement(Location arrivalLocation,
java.util.Date departureTime,
java.util.Date arrivalTime)
|
Voyage |
build()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Voyage.Builder(VoyageNumber voyageNumber, Location departureLocation)
Method Detail |
---|
public Voyage.Builder addMovement(Location arrivalLocation, java.util.Date departureTime, java.util.Date arrivalTime)
public Voyage build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |