Record Class Metadata
java.lang.Object
java.lang.Record
smile.util.ipynb.Metadata
- Record Components:
kernelspec- information about the kernel used to run the notebook.languageInfo- information about the programming language of the kernel.title- optional notebook title.- optional list of authors.origNbformat- the original nbformat major version if this notebook was converted from an older format;nullotherwise.
public record Metadata(KernelSpec kernelspec, LanguageInfo languageInfo, String title, List<Map<String,String>> authors, Integer origNbformat)
extends Record
Notebook-level metadata. Contains information about the kernel and language
used in the notebook, as well as any other user-defined metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionMetadata(KernelSpec kernelspec, LanguageInfo languageInfo, String title, List<Map<String, String>> authors, Integer origNbformat) Creates an instance of aMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthors()Returns the value of theauthorsrecord 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 thekernelspecrecord component.Returns the value of thelanguageInforecord component.Returns the value of theorigNbformatrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metadata
public Metadata(KernelSpec kernelspec, LanguageInfo languageInfo, String title, List<Map<String, String>> authors, Integer origNbformat) Creates an instance of aMetadatarecord class.- Parameters:
kernelspec- the value for thekernelspecrecord componentlanguageInfo- the value for thelanguageInforecord componenttitle- the value for thetitlerecord componentauthors- the value for theauthorsrecord componentorigNbformat- the value for theorigNbformatrecord component
-
-
Method Details
-
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). -
kernelspec
Returns the value of thekernelspecrecord component.- Returns:
- the value of the
kernelspecrecord component
-
languageInfo
Returns the value of thelanguageInforecord component.- Returns:
- the value of the
languageInforecord component
-
title
-
authors
-
origNbformat
Returns the value of theorigNbformatrecord component.- Returns:
- the value of the
origNbformatrecord component
-