Package me.deecaad.core.utils
Record Class TableBuilder.Line
java.lang.Object
java.lang.Record
me.deecaad.core.utils.TableBuilder.Line
- Enclosing class:
TableBuilder
public static record TableBuilder.Line(char c, net.kyori.adventure.text.format.Style style)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLine(char c, net.kyori.adventure.text.format.Style style) Creates an instance of aLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Componentbuild()charc()Returns the value of thecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.kyori.adventure.text.format.Stylestyle()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Line
public Line(char c, net.kyori.adventure.text.format.Style style) Creates an instance of aLinerecord class.- Parameters:
c- the value for thecrecord componentstyle- the value for thestylerecord component
-
-
Method Details
-
build
public net.kyori.adventure.text.Component build() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
c
public char c()Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
style
public net.kyori.adventure.text.format.Style style()Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-