Record Class ModelCard
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.publishing.ModelCard
public record ModelCard(String name, String summary, String license, String language, String trainingData, String limitations)
extends Record
Descriptive metadata used to build a Hugging Face model card.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.license()Returns the value of thelicenserecord component.Returns the value of thelimitationsrecord component.name()Returns the value of thenamerecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrainingDatarecord component.
-
Constructor Details
-
ModelCard
public ModelCard(String name, String summary, String license, String language, String trainingData, String limitations) Creates an instance of aModelCardrecord class.- Parameters:
name- the value for thenamerecord componentsummary- the value for thesummaryrecord componentlicense- the value for thelicenserecord componentlanguage- the value for thelanguagerecord componenttrainingData- the value for thetrainingDatarecord componentlimitations- the value for thelimitationsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
trainingData
Returns the value of thetrainingDatarecord component.- Returns:
- the value of the
trainingDatarecord component
-
limitations
Returns the value of thelimitationsrecord component.- Returns:
- the value of the
limitationsrecord component
-