Record Class Bounds
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.core.Bounds
-
Constructor Summary
ConstructorsConstructorDescriptionBounds(double xmin, double ymin, double xmax, double ymax) Creates an instance of aBoundsrecord 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.static Boundsread(EndianByteBuffer buf) final StringtoString()Returns a string representation of this record class.doublexmax()Returns the value of thexmaxrecord component.doublexmin()Returns the value of thexminrecord component.doubleymax()Returns the value of theymaxrecord component.doubleymin()Returns the value of theyminrecord component.
-
Constructor Details
-
Bounds
public Bounds(double xmin, double ymin, double xmax, double ymax) Creates an instance of aBoundsrecord class.- Parameters:
xmin- the value for thexminrecord componentymin- the value for theyminrecord componentxmax- the value for thexmaxrecord componentymax- the value for theymaxrecord component
-
-
Method Details
-
read
-
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 with '=='. -
xmin
public double xmin()Returns the value of thexminrecord component.- Returns:
- the value of the
xminrecord component
-
ymin
public double ymin()Returns the value of theyminrecord component.- Returns:
- the value of the
yminrecord component
-
xmax
public double xmax()Returns the value of thexmaxrecord component.- Returns:
- the value of the
xmaxrecord component
-
ymax
public double ymax()Returns the value of theymaxrecord component.- Returns:
- the value of the
ymaxrecord component
-