java.lang.Object
java.lang.Record
dev.qilletni.api.lang.docs.structure.text.inner.EntityDoc
- Record Components:
description- The description of the actual entity definitioncontainedItems- Fields, functions, constructors, etc. of the entityonExtensionFunctions- Functions that are added onto the entity from an 'on' extension from either the current library or an external one
- All Implemented Interfaces:
InnerDoc
public record EntityDoc(@Nullable DocDescription description, List<DocumentedItem> containedItems, List<DocumentedItem> onExtensionFunctions)
extends Record
implements InnerDoc
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDoc(@Nullable DocDescription description) EntityDoc(@Nullable DocDescription description, List<DocumentedItem> containedItems, List<DocumentedItem> onExtensionFunctions) Creates an instance of aEntityDocrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocItem(DocumentedItem documentedItem) voidaddOnExtension(DocumentedItem documentedItem) Returns the value of thecontainedItemsrecord component.@Nullable DocDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theonExtensionFunctionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityDoc
-
EntityDoc
public EntityDoc(@Nullable @Nullable DocDescription description, List<DocumentedItem> containedItems, List<DocumentedItem> onExtensionFunctions) Creates an instance of aEntityDocrecord class.- Parameters:
description- the value for thedescriptionrecord componentcontainedItems- the value for thecontainedItemsrecord componentonExtensionFunctions- the value for theonExtensionFunctionsrecord component
-
-
Method Details
-
addDocItem
-
addOnExtension
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
containedItems
Returns the value of thecontainedItemsrecord component.- Returns:
- the value of the
containedItemsrecord component
-
onExtensionFunctions
Returns the value of theonExtensionFunctionsrecord component.- Returns:
- the value of the
onExtensionFunctionsrecord component
-