Record Class PrepareKnowledgeCorpus.PreparationResult
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.examples.PrepareKnowledgeCorpus.PreparationResult
- Enclosing class:
PrepareKnowledgeCorpus
public static record PrepareKnowledgeCorpus.PreparationResult(FormatAlpacaText.FormatResult formatted, GenerateFactDataset.GenerationResult facts, PrepareKnowledgeCorpus.SplitResult alpacaSplit, PrepareKnowledgeCorpus.SplitResult factSplit, long corpusBytes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreparationResult(FormatAlpacaText.FormatResult formatted, GenerateFactDataset.GenerationResult facts, PrepareKnowledgeCorpus.SplitResult alpacaSplit, PrepareKnowledgeCorpus.SplitResult factSplit, long corpusBytes) Creates an instance of aPreparationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealpacaSplitrecord component.longReturns the value of thecorpusBytesrecord component.final booleanIndicates whether some other object is "equal to" this one.facts()Returns the value of thefactsrecord component.Returns the value of thefactSplitrecord component.Returns the value of theformattedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreparationResult
public PreparationResult(FormatAlpacaText.FormatResult formatted, GenerateFactDataset.GenerationResult facts, PrepareKnowledgeCorpus.SplitResult alpacaSplit, PrepareKnowledgeCorpus.SplitResult factSplit, long corpusBytes) Creates an instance of aPreparationResultrecord class.- Parameters:
formatted- the value for theformattedrecord componentfacts- the value for thefactsrecord componentalpacaSplit- the value for thealpacaSplitrecord componentfactSplit- the value for thefactSplitrecord componentcorpusBytes- the value for thecorpusBytesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
formatted
Returns the value of theformattedrecord component.- Returns:
- the value of the
formattedrecord component
-
facts
Returns the value of thefactsrecord component.- Returns:
- the value of the
factsrecord component
-
alpacaSplit
Returns the value of thealpacaSplitrecord component.- Returns:
- the value of the
alpacaSplitrecord component
-
factSplit
Returns the value of thefactSplitrecord component.- Returns:
- the value of the
factSplitrecord component
-
corpusBytes
public long corpusBytes()Returns the value of thecorpusBytesrecord component.- Returns:
- the value of the
corpusBytesrecord component
-