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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartistNamerecord component.Returns the value of theauctionAppearanceFrequencyrecord component.Returns the value of theaveragePricerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themedianPricerecord component.intpeakYear()Returns the value of thepeakYearrecord component.Returns the value of thepriceVolatilityrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalSalesrecord component.
-
Constructor Details
-
ArtistMarketProfile
public ArtistMarketProfile(String artistName, Real averagePrice, Real medianPrice, Real priceVolatility, int totalSales, Real auctionAppearanceFrequency, int peakYear) Creates an instance of aArtistMarketProfilerecord class.- Parameters:
artistName- the value for theartistNamerecord componentaveragePrice- the value for theaveragePricerecord componentmedianPrice- the value for themedianPricerecord componentpriceVolatility- the value for thepriceVolatilityrecord componenttotalSales- the value for thetotalSalesrecord componentauctionAppearanceFrequency- the value for theauctionAppearanceFrequencyrecord componentpeakYear- the value for thepeakYearrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
artistName
Returns the value of theartistNamerecord component.- Returns:
- the value of the
artistNamerecord component
-
averagePrice
Returns the value of theaveragePricerecord component.- Returns:
- the value of the
averagePricerecord component
-
medianPrice
Returns the value of themedianPricerecord component.- Returns:
- the value of the
medianPricerecord component
-
priceVolatility
Returns the value of thepriceVolatilityrecord component.- Returns:
- the value of the
priceVolatilityrecord component
-
totalSales
public int totalSales()Returns the value of thetotalSalesrecord component.- Returns:
- the value of the
totalSalesrecord component
-
auctionAppearanceFrequency
Returns the value of theauctionAppearanceFrequencyrecord component.- Returns:
- the value of the
auctionAppearanceFrequencyrecord component
-
peakYear
public int peakYear()Returns the value of thepeakYearrecord component.- Returns:
- the value of the
peakYearrecord component
-