/** * Obtains an instance from the quote identifier and value. * * @param quoteId the quote identifier * @param value the value for the given quote * @return the quote instance for the given values */ public static Quote of(QuoteId quoteId, double value) { return new Quote(quoteId, value); }
@Override public Quote build() { return new Quote( quoteId, value); }