Record Class MarkdownCell
java.lang.Object
java.lang.Record
smile.util.ipynb.MarkdownCell
- Record Components:
id- the unique cell identifier (nbformat ≥ 4.5, required in nbformat 5).metadata- the cell-level metadata.source- the Markdown source of the cell.attachments- optional map of filename to MIME bundle for inline attachments.
- All Implemented Interfaces:
Cell
public record MarkdownCell(String id, CellMetadata metadata, MultilineString source, Map<String, Map<String, tools.jackson.databind.JsonNode>> attachments)
extends Record
implements Cell
A markdown cell. Markdown cells contain formatted text written in the
Markdown lightweight markup language and have no outputs.
Since nbformat 4.5 / nbformat 5, markdown cells may also carry
attachments: inline files (e.g. dragged-in images) stored as
a map of filename → MIME bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionMarkdownCell(String id, CellMetadata metadata, MultilineString source, Map<String, Map<String, tools.jackson.databind.JsonNode>> attachments) Creates an instance of aMarkdownCellrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.cellType()Returns the cell type identifier.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MarkdownCell
public MarkdownCell(String id, CellMetadata metadata, MultilineString source, Map<String, Map<String, tools.jackson.databind.JsonNode>> attachments) Creates an instance of aMarkdownCellrecord class.- Parameters:
id- the value for theidrecord componentmetadata- the value for themetadatarecord componentsource- the value for thesourcerecord componentattachments- the value for theattachmentsrecord component
-
-
Method Details
-
cellType
-
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). -
id
-
metadata
Returns the value of themetadatarecord component. -
source
Returns the value of thesourcerecord component. -
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-