Record Class BackgroundTypeFill
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BackgroundTypeFill
- All Implemented Interfaces:
Serializable,ApiResult,BackgroundType
public record BackgroundTypeFill(@NotNull BackgroundFill fill, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming)
extends Record
implements BackgroundType
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.BackgroundType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundTypeFill(@NotNull BackgroundFill fill, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming) Creates an instance of aBackgroundTypeFillrecord class. -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) intReturns the value of thedarkThemeDimmingrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull BackgroundFillfill()Returns the value of thefillrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
BackgroundTypeFill
public BackgroundTypeFill(@NotNull @NotNull BackgroundFill fill, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming) Creates an instance of aBackgroundTypeFillrecord class.- Parameters:
fill- the value for thefillrecord componentdarkThemeDimming- the value for thedarkThemeDimmingrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceBackgroundType
-
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 '=='. -
fill
Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord component
-
darkThemeDimming
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming()Returns the value of thedarkThemeDimmingrecord component.- Returns:
- the value of the
darkThemeDimmingrecord component
-