Record Class ArtMarketAnalyzer.PricePrediction
java.lang.Object
java.lang.Record
org.episteme.social.arts.ArtMarketAnalyzer.PricePrediction
- All Implemented Interfaces:
Serializable
- Enclosing class:
ArtMarketAnalyzer
public static record ArtMarketAnalyzer.PricePrediction(Real estimatedPrice, Real confidenceLow, Real confidenceHigh, List<String> priceFactors)
extends Record
implements Serializable
Result of a price prediction analysis for a specific artwork.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidenceHighrecord component.Returns the value of theconfidenceLowrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theestimatedPricerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepriceFactorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PricePrediction
public PricePrediction(Real estimatedPrice, Real confidenceLow, Real confidenceHigh, List<String> priceFactors) Creates an instance of aPricePredictionrecord class.- Parameters:
estimatedPrice- the value for theestimatedPricerecord componentconfidenceLow- the value for theconfidenceLowrecord componentconfidenceHigh- the value for theconfidenceHighrecord componentpriceFactors- the value for thepriceFactorsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
estimatedPrice
Returns the value of theestimatedPricerecord component.- Returns:
- the value of the
estimatedPricerecord component
-
confidenceLow
Returns the value of theconfidenceLowrecord component.- Returns:
- the value of the
confidenceLowrecord component
-
confidenceHigh
Returns the value of theconfidenceHighrecord component.- Returns:
- the value of the
confidenceHighrecord component
-
priceFactors
-