Record Class HistoricalCurrencyConverter.Currency
java.lang.Object
java.lang.Record
org.episteme.social.history.HistoricalCurrencyConverter.Currency
- Record Components:
name- full name of the currencysymbol- graphical symbol or abbreviationstartYear- approximate start of circulation (BCE negative)endYear- approximate end of circulation (BCE negative)
- All Implemented Interfaces:
Serializable
- Enclosing class:
HistoricalCurrencyConverter
public static record HistoricalCurrencyConverter.Currency(String name, String symbol, int startYear, int endYear)
extends Record
implements Serializable
Represents a historical currency and its period of circulation.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintendYear()Returns the value of theendYearrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of thestartYearrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
name
-
symbol
-
startYear
-
endYear
-