Record Class DrawCaption.Literal
java.lang.Object
java.lang.Record
com.botwithus.bot.api.draw.DrawCaption.Literal
- All Implemented Interfaces:
DrawCaption
- Enclosing interface:
DrawCaption
public static record DrawCaption.Literal(String text, DrawFont font)
extends Record
implements DrawCaption
Literal text.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DrawCaption
DrawCaption.FixedPoint, DrawCaption.Literal, DrawCaption.None -
Field Summary
Fields inherited from interface DrawCaption
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.This caption in a different style.Methods inherited from interface DrawCaption
isEmpty
-
Constructor Details
-
Literal
-
-
Method Details
-
withFont
Description copied from interface:DrawCaptionThis caption in a different style.- Specified by:
withFontin interfaceDrawCaption
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
font
Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-