Record Class ArtCritiqueEngine.TechnicalStandard
java.lang.Object
java.lang.Record
org.episteme.social.arts.ArtCritiqueEngine.TechnicalStandard
- All Implemented Interfaces:
Serializable
- Enclosing class:
ArtCritiqueEngine
public static record ArtCritiqueEngine.TechnicalStandard(String name, ArtCritiqueEngine.TechniqueCategory category, int startYear, int endYear, String description)
extends Record
implements Serializable
Represents a technical standard from a specific historical period.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTechnicalStandard(String name, ArtCritiqueEngine.TechniqueCategory category, int startYear, int endYear, String description) Creates an instance of aTechnicalStandardrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.Returns the value of thedescriptionrecord 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.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
-
TechnicalStandard
public TechnicalStandard(String name, ArtCritiqueEngine.TechniqueCategory category, int startYear, int endYear, String description) Creates an instance of aTechnicalStandardrecord class.- Parameters:
name- the value for thenamerecord componentcategory- the value for thecategoryrecord componentstartYear- the value for thestartYearrecord componentendYear- the value for theendYearrecord componentdescription- the value for thedescriptionrecord 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
-
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
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-