java.lang.Object
java.lang.Record
org.aya.cli.literate.FaithfulPrettier.KnifeCut
- Enclosing interface:
FaithfulPrettier
public static record FaithfulPrettier.KnifeCut(@NotNull kala.text.StringSlice before, @NotNull kala.text.StringSlice current, @NotNull kala.text.StringSlice remaining, int base)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionKnifeCut(@NotNull kala.text.StringSlice before, @NotNull kala.text.StringSlice current, @NotNull kala.text.StringSlice remaining, int base) Creates an instance of aKnifeCutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbase()Returns the value of thebaserecord component.@NotNull kala.text.StringSlicebefore()Returns the value of thebeforerecord component.@NotNull kala.text.StringSlicecurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.text.StringSliceReturns the value of theremainingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KnifeCut
public KnifeCut(@NotNull @NotNull kala.text.StringSlice before, @NotNull @NotNull kala.text.StringSlice current, @NotNull @NotNull kala.text.StringSlice remaining, int base) Creates an instance of aKnifeCutrecord class.- Parameters:
before- the value for thebeforerecord componentcurrent- the value for thecurrentrecord componentremaining- the value for theremainingrecord componentbase- the value for thebaserecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
before
@NotNull public @NotNull kala.text.StringSlice before()Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
current
@NotNull public @NotNull kala.text.StringSlice current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
remaining
@NotNull public @NotNull kala.text.StringSlice remaining()Returns the value of theremainingrecord component.- Returns:
- the value of the
remainingrecord component
-
base
public int base()Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-