Record Class ArtMarketAnalyzer.AuctionRecord
java.lang.Object
java.lang.Record
org.episteme.social.arts.ArtMarketAnalyzer.AuctionRecord
- All Implemented Interfaces:
Serializable
- Enclosing class:
ArtMarketAnalyzer
public static record ArtMarketAnalyzer.AuctionRecord(String artworkTitle, String artist, int creationYear, String medium, String auctionHouse, TimeCoordinate saleDate, Real hammerPrice, Real estimateLow, Real estimateHigh, String currency)
extends Record
implements Serializable
Represents a single auction sale record.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuctionRecord(String artworkTitle, String artist, int creationYear, String medium, String auctionHouse, TimeCoordinate saleDate, Real hammerPrice, Real estimateLow, Real estimateHigh, String currency) Creates an instance of aAuctionRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartist()Returns the value of theartistrecord component.Returns the value of theartworkTitlerecord component.Returns the value of theauctionHouserecord component.intReturns the value of thecreationYearrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theestimateHighrecord component.Returns the value of theestimateLowrecord component.Returns the value of thehammerPricerecord component.final inthashCode()Returns a hash code value for this object.medium()Returns the value of themediumrecord component.saleDate()Returns the value of thesaleDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuctionRecord
public AuctionRecord(String artworkTitle, String artist, int creationYear, String medium, String auctionHouse, TimeCoordinate saleDate, Real hammerPrice, Real estimateLow, Real estimateHigh, String currency) Creates an instance of aAuctionRecordrecord class.- Parameters:
artworkTitle- the value for theartworkTitlerecord componentartist- the value for theartistrecord componentcreationYear- the value for thecreationYearrecord componentmedium- the value for themediumrecord componentauctionHouse- the value for theauctionHouserecord componentsaleDate- the value for thesaleDaterecord componenthammerPrice- the value for thehammerPricerecord componentestimateLow- the value for theestimateLowrecord componentestimateHigh- the value for theestimateHighrecord componentcurrency- the value for thecurrencyrecord 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. -
artworkTitle
Returns the value of theartworkTitlerecord component.- Returns:
- the value of the
artworkTitlerecord component
-
artist
Returns the value of theartistrecord component.- Returns:
- the value of the
artistrecord component
-
creationYear
public int creationYear()Returns the value of thecreationYearrecord component.- Returns:
- the value of the
creationYearrecord component
-
medium
Returns the value of themediumrecord component.- Returns:
- the value of the
mediumrecord component
-
auctionHouse
Returns the value of theauctionHouserecord component.- Returns:
- the value of the
auctionHouserecord component
-
saleDate
Returns the value of thesaleDaterecord component.- Returns:
- the value of the
saleDaterecord component
-
hammerPrice
Returns the value of thehammerPricerecord component.- Returns:
- the value of the
hammerPricerecord component
-
estimateLow
Returns the value of theestimateLowrecord component.- Returns:
- the value of the
estimateLowrecord component
-
estimateHigh
Returns the value of theestimateHighrecord component.- Returns:
- the value of the
estimateHighrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-