Record Class PriceHistory.Sourced
java.lang.Object
java.lang.Record
ai.redouble.demo.pricing.PriceHistory.Sourced
- Enclosing class:
PriceHistory
public static record PriceHistory.Sourced(String path, String documentDate, PriceMention mention)
extends Record
One mention with where it came from and the date its document carries.
- Since:
- 0.1 (2026-09-15)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionSourced(String path, String documentDate, PriceMention mention) Creates an instance of aSourcedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mention()Returns the value of thementionrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Sourced
Creates an instance of aSourcedrecord class.- Parameters:
path- the value for thepathrecord componentdocumentDate- the value for thedocumentDaterecord componentmention- the value for thementionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
documentDate
Returns the value of thedocumentDaterecord component.- Returns:
- the value of the
documentDaterecord component
-
mention
Returns the value of thementionrecord component.- Returns:
- the value of the
mentionrecord component
-