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 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 a AuctionRecord record class.
      Parameters:
      artworkTitle - the value for the artworkTitle record component
      artist - the value for the artist record component
      creationYear - the value for the creationYear record component
      medium - the value for the medium record component
      auctionHouse - the value for the auctionHouse record component
      saleDate - the value for the saleDate record component
      hammerPrice - the value for the hammerPrice record component
      estimateLow - the value for the estimateLow record component
      estimateHigh - the value for the estimateHigh record component
      currency - the value for the currency 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.
    • artworkTitle

      public String artworkTitle()
      Returns the value of the artworkTitle record component.
      Returns:
      the value of the artworkTitle record component
    • artist

      public String artist()
      Returns the value of the artist record component.
      Returns:
      the value of the artist record component
    • creationYear

      public int creationYear()
      Returns the value of the creationYear record component.
      Returns:
      the value of the creationYear record component
    • medium

      public String medium()
      Returns the value of the medium record component.
      Returns:
      the value of the medium record component
    • auctionHouse

      public String auctionHouse()
      Returns the value of the auctionHouse record component.
      Returns:
      the value of the auctionHouse record component
    • saleDate

      public TimeCoordinate saleDate()
      Returns the value of the saleDate record component.
      Returns:
      the value of the saleDate record component
    • hammerPrice

      public Real hammerPrice()
      Returns the value of the hammerPrice record component.
      Returns:
      the value of the hammerPrice record component
    • estimateLow

      public Real estimateLow()
      Returns the value of the estimateLow record component.
      Returns:
      the value of the estimateLow record component
    • estimateHigh

      public Real estimateHigh()
      Returns the value of the estimateHigh record component.
      Returns:
      the value of the estimateHigh record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component