Record Class RoundedTransform
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.math.transform.RoundedTransform
- All Implemented Interfaces:
Transform
-
Constructor Summary
ConstructorsConstructorDescriptionRoundedTransform
(Transform transform) Creates an instance of aRoundedTransform
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of applying the function to the input.Create a newTransform
that combines this transform with another.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.inverse()
Create a new inverse transform.boolean
Return whether this transform is an identity.final String
toString()
Returns a string representation of this record class.Returns the value of thetransform
record component.
-
Constructor Details
-
RoundedTransform
Creates an instance of aRoundedTransform
record class.- Parameters:
transform
- the value for thetransform
record component
-
-
Method Details
-
isIdentity
public boolean isIdentity()Description copied from interface:Transform
Return whether this transform is an identity.If it is not known, then
false
must be returned.- Specified by:
isIdentity
in interfaceTransform
- Returns:
- true if identity
-
apply
Description copied from interface:Transform
Returns the result of applying the function to the input. -
inverse
Description copied from interface:Transform
Create a new inverse transform. -
combine
Description copied from interface:Transform
Create a newTransform
that combines this transform with another. -
getTransform
-
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)
. -
transform
Returns the value of thetransform
record component.- Returns:
- the value of the
transform
record component
-