Record Class DrawCaption.FixedPoint
java.lang.Object
java.lang.Record
com.botwithus.bot.api.draw.DrawCaption.FixedPoint
- Record Components:
value- the scaled integerdecimals- how far it was scaled, 0..DrawLimits.MAX_DECIMALSfont- the style to draw it in
- All Implemented Interfaces:
DrawCaption
- Enclosing interface:
DrawCaption
public static record DrawCaption.FixedPoint(long value, int decimals, DrawFont font)
extends Record
implements DrawCaption
A fixed-point number the producer formats.
-
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
ConstructorsConstructorDescriptionFixedPoint(long value, int decimals, DrawFont font) Creates an instance of aFixedPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdecimals()Returns the value of thedecimalsrecord component.final 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.final StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.This caption in a different style.Methods inherited from interface DrawCaption
isEmpty
-
Constructor Details
-
FixedPoint
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
value
-
decimals
-
font
-