Record Class BorderEvolution.BorderChange
java.lang.Object
java.lang.Record
org.episteme.social.history.BorderEvolution.BorderChange
- Record Components:
date- date of the change (fuzzy)description- textual descriptionbeforeTerritory- state before the changeafterTerritory- state after the changetype- category of border modification
- All Implemented Interfaces:
Serializable
- Enclosing class:
BorderEvolution
public static record BorderEvolution.BorderChange(TimeCoordinate date, String description, BorderEvolution.Territory beforeTerritory, BorderEvolution.Territory afterTerritory, BorderEvolution.ChangeType type)
extends Record
implements Serializable
Represents a specific event that changed territorial boundaries.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBorderChange(TimeCoordinate date, String description, BorderEvolution.Territory beforeTerritory, BorderEvolution.Territory afterTerritory, BorderEvolution.ChangeType type) Creates an instance of aBorderChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterTerritoryrecord component.Returns the value of thebeforeTerritoryrecord component.date()Returns the value of thedaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
BorderChange
public BorderChange(TimeCoordinate date, String description, BorderEvolution.Territory beforeTerritory, BorderEvolution.Territory afterTerritory, BorderEvolution.ChangeType type) Creates an instance of aBorderChangerecord class.- Parameters:
date- the value for thedaterecord componentdescription- the value for thedescriptionrecord componentbeforeTerritory- the value for thebeforeTerritoryrecord componentafterTerritory- the value for theafterTerritoryrecord componenttype- the value for thetyperecord 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). -
date
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
beforeTerritory
Returns the value of thebeforeTerritoryrecord component.- Returns:
- the value of the
beforeTerritoryrecord component
-
afterTerritory
Returns the value of theafterTerritoryrecord component.- Returns:
- the value of the
afterTerritoryrecord component
-
type
-