public Builder(VoyageNumber voyageNumber, Location initialDepartureLocation) { Validate.notNull(voyageNumber, "Voyage number is required"); Validate.notNull(initialDepartureLocation, "Departure location is required"); this.voyageNumber = voyageNumber; this.currentDepartureLocation = initialDepartureLocation; }
public static Voyage lookup(VoyageNumber voyageNumber) { return(ALL.ContainsKey(voyageNumber) ? ALL[voyageNumber] : null); }