Package dev.tobee.telegram.model
Record Class MaskPosition
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.MaskPosition
-
Constructor Summary
ConstructorsConstructorDescriptionMaskPosition(String point, float xShift, float yShift, float scale)Creates an instance of aMaskPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.point()Returns the value of thepointrecord component.floatscale()Returns the value of thescalerecord component.toString()Returns a string representation of this record class.floatxShift()Returns the value of thexShiftrecord component.floatyShift()Returns the value of theyShiftrecord component.
-
Constructor Details
-
MaskPosition
Creates an instance of aMaskPositionrecord class.- Parameters:
point- the value for thepointrecord componentxShift- the value for thexShiftrecord componentyShift- the value for theyShiftrecord componentscale- the value for thescalerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
point
Returns the value of thepointrecord component.- Returns:
- the value of the
pointrecord component
-
xShift
public float xShift()Returns the value of thexShiftrecord component.- Returns:
- the value of the
xShiftrecord component
-
yShift
public float yShift()Returns the value of theyShiftrecord component.- Returns:
- the value of the
yShiftrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-