java.lang.Object
java.lang.Record
org.aya.concrete.remark.LiterateConsumer.AyaCodeBlocks
- All Implemented Interfaces:
Consumer<Literate>,LiterateConsumer,LiterateConsumer.LiterateExtractinator<Literate.CodeBlock>
- Enclosing interface:
LiterateConsumer
public static record LiterateConsumer.AyaCodeBlocks(@NotNull kala.collection.mutable.MutableList<Literate.CodeBlock> result)
extends Record
implements LiterateConsumer.LiterateExtractinator<Literate.CodeBlock>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.concrete.remark.LiterateConsumer
LiterateConsumer.AyaCodeBlocks, LiterateConsumer.Codes, LiterateConsumer.LiterateExtractinator<T> -
Constructor Summary
ConstructorsConstructorDescriptionAyaCodeBlocks(@NotNull kala.collection.mutable.MutableList<Literate.CodeBlock> result) Creates an instance of aAyaCodeBlocksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableList<Literate.CodeBlock>result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.concrete.remark.LiterateConsumer.LiterateExtractinator
extract
-
Constructor Details
-
AyaCodeBlocks
public AyaCodeBlocks(@NotNull @NotNull kala.collection.mutable.MutableList<Literate.CodeBlock> result) Creates an instance of aAyaCodeBlocksrecord class.- Parameters:
result- the value for theresultrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<Literate>- Specified by:
acceptin interfaceLiterateConsumer
-
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). -
result
Returns the value of theresultrecord component.- Specified by:
resultin interfaceLiterateConsumer.LiterateExtractinator<Literate.CodeBlock>- Returns:
- the value of the
resultrecord component
-