Package tech.catheu.jnotebook.parse
Record Class StaticParsing
java.lang.Object
java.lang.Record
tech.catheu.jnotebook.parse.StaticParsing
public record StaticParsing(@NonNull Path path, @NonNull List<String> lines, @NonNull List<StaticSnippet> snippets, @NonNull ExecutionStatus executionStatus)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStaticParsing(@NonNull Path path, @NonNull List<String> lines, @NonNull List<StaticSnippet> snippets, @NonNull ExecutionStatus executionStatus) Creates an instance of aStaticParsingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull ExecutionStatusReturns the value of theexecutionStatusrecord component.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.@NonNull Pathpath()Returns the value of thepathrecord component.@NonNull List<StaticSnippet>snippets()Returns the value of thesnippetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StaticParsing
public StaticParsing(@NonNull Path path, @NonNull List<String> lines, @NonNull List<StaticSnippet> snippets, @NonNull ExecutionStatus executionStatus) Creates an instance of aStaticParsingrecord class.- Parameters:
path- the value for thepathrecord componentlines- the value for thelinesrecord componentsnippets- the value for thesnippetsrecord componentexecutionStatus- the value for theexecutionStatusrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-
snippets
Returns the value of thesnippetsrecord component.- Returns:
- the value of the
snippetsrecord component
-
executionStatus
Returns the value of theexecutionStatusrecord component.- Returns:
- the value of the
executionStatusrecord component
-