/** * Creates a new object initialized with the given values. * * @param parcelId initial value for the property * @param trackingData initial value for the property * @return new object initialized with the given values */ public static SetParcelTrackingData of(final String parcelId, @Nullable final TrackingData trackingData) { return new SetParcelTrackingData(parcelId, trackingData); }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public SetParcelTrackingData withTrackingData(final TrackingData trackingData) { return new SetParcelTrackingData(getParcelId(), trackingData); } }