Record Class BorderEvolution.Territory
java.lang.Object
java.lang.Record
org.episteme.social.history.BorderEvolution.Territory
- Record Components:
name- territory namesovereignEntity- sovereign entity nameboundaryPoints- list of coordinates (latitude, longitude)startDate- start of sovereignty (fuzzy)endDate- end of sovereignty (fuzzy)notes- additional metadata
- All Implemented Interfaces:
Serializable
- Enclosing class:
BorderEvolution
public static record BorderEvolution.Territory(String name, String sovereignEntity, List<double[]> boundaryPoints, TimeCoordinate startDate, TimeCoordinate endDate, String notes)
extends Record
implements Serializable
Represents a defined geographical territory under specific sovereignty.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTerritory(String name, String sovereignEntity, List<double[]> boundaryPoints, TimeCoordinate startDate, TimeCoordinate endDate, String notes) Creates an instance of aTerritoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<double[]> Returns the value of theboundaryPointsrecord component.endDate()Returns the value of theendDaterecord 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.notes()Returns the value of thenotesrecord component.Returns the value of thesovereignEntityrecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Territory
public Territory(String name, String sovereignEntity, List<double[]> boundaryPoints, TimeCoordinate startDate, TimeCoordinate endDate, String notes) Creates an instance of aTerritoryrecord class.- Parameters:
name- the value for thenamerecord componentsovereignEntity- the value for thesovereignEntityrecord componentboundaryPoints- the value for theboundaryPointsrecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord componentnotes- the value for thenotesrecord 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). -
name
-
sovereignEntity
Returns the value of thesovereignEntityrecord component.- Returns:
- the value of the
sovereignEntityrecord component
-
boundaryPoints
Returns the value of theboundaryPointsrecord component.- Returns:
- the value of the
boundaryPointsrecord component
-
startDate
-
endDate
-
notes
-