Package io.fleetcoreplatform.Models
Record Class SplitPolygon
java.lang.Object
java.lang.Record
io.fleetcoreplatform.Models.SplitPolygon
- Record Components:
left- The first partitioned region resulting from the cut.right- The second partitioned region resulting from the cut.
A container holding the results of a binary polygon bisection. Always guarantees two valid
geometric regions after a split operation.
-
Constructor Summary
ConstructorsConstructorDescriptionSplitPolygon(org.postgis.Polygon left, org.postgis.Polygon right) Creates an instance of aSplitPolygonrecord class. -
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.org.postgis.Polygonleft()Returns the value of theleftrecord component.org.postgis.Polygonright()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. -
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. -
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). -
left
public org.postgis.Polygon left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public org.postgis.Polygon right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-