Record Class BackgroundFillGradient
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BackgroundFillGradient
- All Implemented Interfaces:
Serializable,ApiResult,BackgroundFill
public record BackgroundFillGradient(@NotNull Color topColor, @NotNull Color bottomColor, @org.checkerframework.common.value.qual.IntRange(from=0L, to=359L) int rotationAngle)
extends Record
implements BackgroundFill
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.BackgroundFill
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundFillGradient(@NotNull Color topColor, @NotNull Color bottomColor, @org.checkerframework.common.value.qual.IntRange(from=0L, to=359L) int rotationAngle) Creates an instance of aBackgroundFillGradientrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ColorReturns the value of thebottomColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@org.checkerframework.common.value.qual.IntRange(from=0L, to=359L) intReturns the value of therotationAnglerecord component.@NotNull ColortopColor()Returns the value of thetopColorrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
BackgroundFillGradient
public BackgroundFillGradient(@NotNull @NotNull Color topColor, @NotNull @NotNull Color bottomColor, @org.checkerframework.common.value.qual.IntRange(from=0L, to=359L) int rotationAngle) Creates an instance of aBackgroundFillGradientrecord class.- Parameters:
topColor- the value for thetopColorrecord componentbottomColor- the value for thebottomColorrecord componentrotationAngle- the value for therotationAnglerecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceBackgroundFill
-
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 '=='. -
topColor
Returns the value of thetopColorrecord component.- Returns:
- the value of the
topColorrecord component
-
bottomColor
Returns the value of thebottomColorrecord component.- Returns:
- the value of the
bottomColorrecord component
-
rotationAngle
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=359L) int rotationAngle()Returns the value of therotationAnglerecord component.- Returns:
- the value of the
rotationAnglerecord component
-