Record Class DrawCaption.None
java.lang.Object
java.lang.Record
com.botwithus.bot.api.draw.DrawCaption.None
- All Implemented Interfaces:
DrawCaption
- Enclosing interface:
DrawCaption
The absence of a caption.
A variant rather than a null so the encoder's switch stays
exhaustive and "no label" is a case a reader can see handled.
-
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.final inthashCode()Returns a hash code value for this object.booleanisEmpty()True when there is nothing to draw.final StringtoString()Returns a string representation of this record class.This caption in a different style.
-
Constructor Details
-
None
public None()Creates an instance of aNonerecord class.
-
-
Method Details
-
withFont
Description copied from interface:DrawCaptionThis caption in a different style.- Specified by:
withFontin interfaceDrawCaption
-
isEmpty
public boolean isEmpty()Description copied from interface:DrawCaptionTrue when there is nothing to draw.- Specified by:
isEmptyin 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.
-