Record Class GiftBackground
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.GiftBackground
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
ConstructorsConstructorDescriptionGiftBackground(@NotNull Color centerColor, @NotNull Color edgeColor, @NotNull Color textColor) Creates an instance of aGiftBackgroundrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ColorReturns the value of thecenterColorrecord component.@NotNull ColorReturns the value of theedgeColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull ColorReturns the value of thetextColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GiftBackground
public GiftBackground(@NotNull @NotNull Color centerColor, @NotNull @NotNull Color edgeColor, @NotNull @NotNull Color textColor) Creates an instance of aGiftBackgroundrecord class.- Parameters:
centerColor- the value for thecenterColorrecord componentedgeColor- the value for theedgeColorrecord componenttextColor- the value for thetextColorrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
centerColor
Returns the value of thecenterColorrecord component.- Returns:
- the value of the
centerColorrecord component
-
edgeColor
Returns the value of theedgeColorrecord component.- Returns:
- the value of the
edgeColorrecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-