Record Class DoughCut
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.dough.DoughCut
-
Constructor Summary
ConstructorsConstructorDescriptionDoughCut(int binaryMatrix, float area) Creates an instance of aDoughCutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatarea()Returns the value of thearearecord component.intReturns the value of thebinaryMatrixrecord 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.
-
Constructor Details
-
DoughCut
public DoughCut(int binaryMatrix, float area) Creates an instance of aDoughCutrecord class.- Parameters:
binaryMatrix- the value for thebinaryMatrixrecord componentarea- the value for thearearecord component
-
-
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 with '=='. -
binaryMatrix
public int binaryMatrix()Returns the value of thebinaryMatrixrecord component.- Returns:
- the value of the
binaryMatrixrecord component
-
area
public float area()Returns the value of thearearecord component.- Returns:
- the value of the
arearecord component
-