Record Class Style.LineThrough
java.lang.Object
java.lang.Record
org.aya.pretty.doc.Style.LineThrough
- All Implemented Interfaces:
Serializable,Style
- Enclosing interface:
Style
public static record Style.LineThrough(@NotNull Style.LineThrough.Position position, @NotNull Style.LineThrough.Shape shape, @Nullable Style.Color color)
extends Record
implements Style
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from interface org.aya.pretty.doc.Style
Style.Attr, Style.Color, Style.ColorHex, Style.ColorName, Style.CustomStyle, Style.LineThrough, Style.Preset -
Constructor Summary
ConstructorsConstructorDescriptionLineThrough(@NotNull Style.LineThrough.Position position, @NotNull Style.LineThrough.Shape shape, @Nullable Style.Color color) Creates an instance of aLineThroughrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Style.Colorcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Style.LineThrough.Positionposition()Returns the value of thepositionrecord component.@NotNull Style.LineThrough.Shapeshape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LineThrough
public LineThrough(@NotNull @NotNull Style.LineThrough.Position position, @NotNull @NotNull Style.LineThrough.Shape shape, @Nullable @Nullable Style.Color color) Creates an instance of aLineThroughrecord class.- Parameters:
position- the value for thepositionrecord componentshape- the value for theshaperecord componentcolor- the value for thecolorrecord 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). -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-