Record Class BackgroundTypePattern
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BackgroundTypePattern
- All Implemented Interfaces:
Serializable,ApiResult,BackgroundType
public record BackgroundTypePattern(@NotNull Document document, @NotNull BackgroundFill fill, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int intensity, boolean isInverted, boolean isMoving)
extends Record
implements BackgroundType
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.BackgroundType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundTypePattern(@NotNull Document document, @NotNull BackgroundFill fill, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int intensity, boolean isInverted, boolean isMoving) Creates an instance of aBackgroundTypePatternrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Documentdocument()Returns the value of thedocumentrecord 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.@org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) intReturns the value of theintensityrecord component.booleanReturns the value of theisInvertedrecord component.booleanisMoving()Returns the value of theisMovingrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
BackgroundTypePattern
public BackgroundTypePattern(@NotNull @NotNull Document document, @NotNull @NotNull BackgroundFill fill, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int intensity, boolean isInverted, boolean isMoving) Creates an instance of aBackgroundTypePatternrecord class.- Parameters:
document- the value for thedocumentrecord componentfill- the value for thefillrecord componentintensity- the value for theintensityrecord componentisInverted- the value for theisInvertedrecord componentisMoving- the value for theisMovingrecord 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 '=='. -
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
fill
Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord component
-
intensity
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int intensity()Returns the value of theintensityrecord component.- Returns:
- the value of the
intensityrecord component
-
isInverted
public boolean isInverted()Returns the value of theisInvertedrecord component.- Returns:
- the value of the
isInvertedrecord component
-
isMoving
public boolean isMoving()Returns the value of theisMovingrecord component.- Returns:
- the value of the
isMovingrecord component
-