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, @IntRange(from=0L,to=100L) int intensity, boolean isInverted, boolean isMoving)
extends Record
implements BackgroundType
- See Also:
-
Field Summary
Fields inherited from interface BackgroundType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundTypePattern(@NotNull Document document, @NotNull BackgroundFill fill, @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.@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, @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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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 @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
-