/** * Creates a new object initialized with the given values. * * @param parcelId initial value for the property * @param measurements initial value for the property * @return new object initialized with the given values */ public static SetParcelMeasurements of(final String parcelId, @Nullable final ParcelMeasurements measurements) { return new SetParcelMeasurements(parcelId, measurements); }
/** * 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 SetParcelMeasurements withMeasurements(final ParcelMeasurements measurements) { return new SetParcelMeasurements(getParcelId(), measurements); } }