Record Class ArtMarketAnalyzer.ArtistMarketProfile

java.lang.Object
java.lang.Record
org.episteme.social.arts.ArtMarketAnalyzer.ArtistMarketProfile
All Implemented Interfaces:
Serializable
Enclosing class:
ArtMarketAnalyzer

public static record ArtMarketAnalyzer.ArtistMarketProfile(String artistName, Real averagePrice, Real medianPrice, Real priceVolatility, int totalSales, Real auctionAppearanceFrequency, int peakYear) extends Record implements Serializable
Statistical profile of an artist's performance in the auction market.
Since:
1.0
Version:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArtistMarketProfile(String artistName, Real averagePrice, Real medianPrice, Real priceVolatility, int totalSales, Real auctionAppearanceFrequency, int peakYear)
    Creates an instance of a ArtistMarketProfile record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the artistName record component.
    Returns the value of the auctionAppearanceFrequency record component.
    Returns the value of the averagePrice record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the medianPrice record component.
    int
    Returns the value of the peakYear record component.
    Returns the value of the priceVolatility record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the totalSales record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ArtistMarketProfile

      public ArtistMarketProfile(String artistName, Real averagePrice, Real medianPrice, Real priceVolatility, int totalSales, Real auctionAppearanceFrequency, int peakYear)
      Creates an instance of a ArtistMarketProfile record class.
      Parameters:
      artistName - the value for the artistName record component
      averagePrice - the value for the averagePrice record component
      medianPrice - the value for the medianPrice record component
      priceVolatility - the value for the priceVolatility record component
      totalSales - the value for the totalSales record component
      auctionAppearanceFrequency - the value for the auctionAppearanceFrequency record component
      peakYear - the value for the peakYear 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • artistName

      public String artistName()
      Returns the value of the artistName record component.
      Returns:
      the value of the artistName record component
    • averagePrice

      public Real averagePrice()
      Returns the value of the averagePrice record component.
      Returns:
      the value of the averagePrice record component
    • medianPrice

      public Real medianPrice()
      Returns the value of the medianPrice record component.
      Returns:
      the value of the medianPrice record component
    • priceVolatility

      public Real priceVolatility()
      Returns the value of the priceVolatility record component.
      Returns:
      the value of the priceVolatility record component
    • totalSales

      public int totalSales()
      Returns the value of the totalSales record component.
      Returns:
      the value of the totalSales record component
    • auctionAppearanceFrequency

      public Real auctionAppearanceFrequency()
      Returns the value of the auctionAppearanceFrequency record component.
      Returns:
      the value of the auctionAppearanceFrequency record component
    • peakYear

      public int peakYear()
      Returns the value of the peakYear record component.
      Returns:
      the value of the peakYear record component