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 Details

    • PricePrediction

      public PricePrediction(Real estimatedPrice, Real confidenceLow, Real confidenceHigh, List<String> priceFactors)
      Creates an instance of a PricePrediction record class.
      Parameters:
      estimatedPrice - the value for the estimatedPrice record component
      confidenceLow - the value for the confidenceLow record component
      confidenceHigh - the value for the confidenceHigh record component
      priceFactors - the value for the priceFactors record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • estimatedPrice

      public Real estimatedPrice()
      Returns the value of the estimatedPrice record component.
      Returns:
      the value of the estimatedPrice record component
    • confidenceLow

      public Real confidenceLow()
      Returns the value of the confidenceLow record component.
      Returns:
      the value of the confidenceLow record component
    • confidenceHigh

      public Real confidenceHigh()
      Returns the value of the confidenceHigh record component.
      Returns:
      the value of the confidenceHigh record component
    • priceFactors

      public List<String> priceFactors()
      Returns the value of the priceFactors record component.
      Returns:
      the value of the priceFactors record component