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 thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionsrecord component.Returns the value of thefrontmatterrecord component.final inthashCode()Returns a hash code value for this object.original()Returns the value of theoriginalrecord component.final StringtoString()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 aComponentsrecord class.- Parameters:
original- the value for theoriginalrecord componentfrontmatter- the value for thefrontmatterrecord componentcontent- the value for thecontentrecord componentexceptions- the value for theexceptionsrecord 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 theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-
frontmatter
Returns the value of thefrontmatterrecord component.- Returns:
- the value of the
frontmatterrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
exceptions
Returns the value of theexceptionsrecord component.- Returns:
- the value of the
exceptionsrecord component
-