Record Class BorderEvolution.Territory

java.lang.Object
java.lang.Record
org.episteme.social.history.BorderEvolution.Territory
Record Components:
name - territory name
sovereignEntity - sovereign entity name
boundaryPoints - 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 Details

    • Territory

      public Territory(String name, String sovereignEntity, List<double[]> boundaryPoints, TimeCoordinate startDate, TimeCoordinate endDate, String notes)
      Creates an instance of a Territory record class.
      Parameters:
      name - the value for the name record component
      sovereignEntity - the value for the sovereignEntity record component
      boundaryPoints - the value for the boundaryPoints record component
      startDate - the value for the startDate record component
      endDate - the value for the endDate record component
      notes - the value for the notes record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • sovereignEntity

      public String sovereignEntity()
      Returns the value of the sovereignEntity record component.
      Returns:
      the value of the sovereignEntity record component
    • boundaryPoints

      public List<double[]> boundaryPoints()
      Returns the value of the boundaryPoints record component.
      Returns:
      the value of the boundaryPoints record component
    • startDate

      public TimeCoordinate startDate()
      Returns the value of the startDate record component.
      Returns:
      the value of the startDate record component
    • endDate

      public TimeCoordinate endDate()
      Returns the value of the endDate record component.
      Returns:
      the value of the endDate record component
    • notes

      public String notes()
      Returns the value of the notes record component.
      Returns:
      the value of the notes record component