Package lib.aide.resource.nature
Record Class FrontmatterNature.Components<F>
java.lang.Object
java.lang.Record
lib.aide.resource.nature.FrontmatterNature.Components<F>
- Enclosing class:
FrontmatterNature<F>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Returns the value of thecontent
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexceptions
record component.Returns the value of thefrontmatter
record component.final int
hashCode()
Returns a hash code value for this object.original()
Returns the value of theoriginal
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Components
public Components(String original, Optional<F> frontmatter, String content, List<Exception> exceptions) Creates an instance of aComponents
record class.- Parameters:
original
- the value for theoriginal
record componentfrontmatter
- the value for thefrontmatter
record componentcontent
- the value for thecontent
record componentexceptions
- the value for theexceptions
record 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)
. -
original
Returns the value of theoriginal
record component.- Returns:
- the value of the
original
record component
-
frontmatter
Returns the value of thefrontmatter
record component.- Returns:
- the value of the
frontmatter
record component
-
content
Returns the value of thecontent
record component.- Returns:
- the value of the
content
record component
-
exceptions
Returns the value of theexceptions
record component.- Returns:
- the value of the
exceptions
record component
-