Record Class IconographyAnalyzer.IconographicSymbol
java.lang.Object
java.lang.Record
org.episteme.social.arts.IconographyAnalyzer.IconographicSymbol
- All Implemented Interfaces:
Serializable
- Enclosing class:
IconographyAnalyzer
public static record IconographyAnalyzer.IconographicSymbol(String name, IconographyAnalyzer.SymbolCategory category, String meaning, int startYear, int endYear)
extends Record
implements Serializable
Represents a single iconographic symbol and its historical context.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIconographicSymbol(String name, IconographyAnalyzer.SymbolCategory category, String meaning, int startYear, int endYear) Creates an instance of aIconographicSymbolrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.intendYear()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.meaning()Returns the value of themeaningrecord component.name()Returns the value of thenamerecord component.intReturns the value of thestartYearrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IconographicSymbol
public IconographicSymbol(String name, IconographyAnalyzer.SymbolCategory category, String meaning, int startYear, int endYear) Creates an instance of aIconographicSymbolrecord class.- Parameters:
name- the value for thenamerecord componentcategory- the value for thecategoryrecord componentmeaning- the value for themeaningrecord componentstartYear- the value for thestartYearrecord componentendYear- the value for theendYearrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
meaning
Returns the value of themeaningrecord component.- Returns:
- the value of the
meaningrecord component
-
startYear
public int startYear()Returns the value of thestartYearrecord component.- Returns:
- the value of the
startYearrecord component
-
endYear
public int endYear()Returns the value of theendYearrecord component.- Returns:
- the value of the
endYearrecord component
-