Record Class Scale
-
Constructor Summary
ConstructorsConstructorDescriptionScale
(BigDecimal xScale, BigDecimal yScale, BigDecimal zScale) Creates an instance of aScale
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.xScale()
Returns the value of thexScale
record component.yScale()
Returns the value of theyScale
record component.zScale()
Returns the value of thezScale
record component.
-
Constructor Details
-
Scale
Creates an instance of aScale
record class.- Parameters:
xScale
- the value for thexScale
record componentyScale
- the value for theyScale
record componentzScale
- the value for thezScale
record 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)
. -
xScale
Returns the value of thexScale
record component.- Returns:
- the value of the
xScale
record component
-
yScale
Returns the value of theyScale
record component.- Returns:
- the value of the
yScale
record component
-
zScale
Returns the value of thezScale
record component.- Returns:
- the value of the
zScale
record component
-