Record Class StoryAreaPosition
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.StoryAreaPosition
- All Implemented Interfaces:
Serializable,ApiResult
public record StoryAreaPosition(float xPercentage, float yPercentage, float widthPercentage, float heightPercentage, @org.jetbrains.annotations.Range(from=0L, to=360L) float rotationAngle, float cornerRadiusPercentage)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStoryAreaPosition(float xPercentage, float yPercentage, float widthPercentage, float heightPercentage, @org.jetbrains.annotations.Range(from=0L, to=360L) float rotationAngle, float cornerRadiusPercentage) Creates an instance of aStoryAreaPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thecornerRadiusPercentagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of theheightPercentagerecord component.@org.jetbrains.annotations.Range(from=0L, to=360L) floatReturns the value of therotationAnglerecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of thewidthPercentagerecord component.floatReturns the value of thexPercentagerecord component.floatReturns the value of theyPercentagerecord component.
-
Constructor Details
-
StoryAreaPosition
public StoryAreaPosition(float xPercentage, float yPercentage, float widthPercentage, float heightPercentage, @org.jetbrains.annotations.Range(from=0L, to=360L) float rotationAngle, float cornerRadiusPercentage) Creates an instance of aStoryAreaPositionrecord class.- Parameters:
xPercentage- the value for thexPercentagerecord componentyPercentage- the value for theyPercentagerecord componentwidthPercentage- the value for thewidthPercentagerecord componentheightPercentage- the value for theheightPercentagerecord componentrotationAngle- the value for therotationAnglerecord componentcornerRadiusPercentage- the value for thecornerRadiusPercentagerecord 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 '=='. -
xPercentage
public float xPercentage()Returns the value of thexPercentagerecord component.- Returns:
- the value of the
xPercentagerecord component
-
yPercentage
public float yPercentage()Returns the value of theyPercentagerecord component.- Returns:
- the value of the
yPercentagerecord component
-
widthPercentage
public float widthPercentage()Returns the value of thewidthPercentagerecord component.- Returns:
- the value of the
widthPercentagerecord component
-
heightPercentage
public float heightPercentage()Returns the value of theheightPercentagerecord component.- Returns:
- the value of the
heightPercentagerecord component
-
rotationAngle
public @org.jetbrains.annotations.Range(from=0L, to=360L) float rotationAngle()Returns the value of therotationAnglerecord component.- Returns:
- the value of the
rotationAnglerecord component
-
cornerRadiusPercentage
public float cornerRadiusPercentage()Returns the value of thecornerRadiusPercentagerecord component.- Returns:
- the value of the
cornerRadiusPercentagerecord component
-