Record Class SpatialDataSet.Location
java.lang.Object
java.lang.Record
org.episteme.social.geography.SpatialDataSet.Location
- Enclosing class:
SpatialDataSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.
-
Constructor Details
-
Location
Creates an instance of aLocationrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentx- the value for thexrecord componenty- the value for theyrecord componentvalues- the value for thevaluesrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
values
-