Record Class HistoricalConstructionMethods.ConstructionMethod
java.lang.Object
java.lang.Record
org.episteme.social.architecture.HistoricalConstructionMethods.ConstructionMethod
- All Implemented Interfaces:
Serializable
- Enclosing class:
HistoricalConstructionMethods
public static record HistoricalConstructionMethods.ConstructionMethod(String name, String region, int startYear, int endYear, String description, List<String> materials, List<String> characteristics)
extends Record
implements Serializable
Represents a specific construction technique and its historical context.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharacteristicsrecord 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.Returns the value of thematerialsrecord component.name()Returns the value of thenamerecord component.region()Returns the value of theregionrecord component.intReturns the value of thestartYearrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstructionMethod
public ConstructionMethod(String name, String region, int startYear, int endYear, String description, List<String> materials, List<String> characteristics) Creates an instance of aConstructionMethodrecord class.- Parameters:
name- the value for thenamerecord componentregion- the value for theregionrecord componentstartYear- the value for thestartYearrecord componentendYear- the value for theendYearrecord componentdescription- the value for thedescriptionrecord componentmaterials- the value for thematerialsrecord componentcharacteristics- the value for thecharacteristicsrecord 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
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord 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
-
materials
-
characteristics
-