Package ch.so.agi.mcp.model
Record Class ModelHashes
java.lang.Object
java.lang.Record
ch.so.agi.mcp.model.ModelHashes
public record ModelHashes(@Nullable String model, @Nullable String before, @Nullable String after, @Nullable String candidate)
extends Record
Identifies exact UTF-8 model text, not compilation success or imported dependencies.
-
Constructor Summary
ConstructorsConstructorDescriptionModelHashes(@Nullable String model, @Nullable String before, @Nullable String after, @Nullable String candidate) Creates an instance of aModelHashesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringafter()Returns the value of theafterrecord component.static IliAuthoringResultattach(IliAuthoringResult result, @Nullable String before) attach(Map<String, Object> result, ModelHashes hashes) @Nullable Stringbefore()Returns the value of thebeforerecord component.@Nullable StringReturns the value of thecandidaterecord component.static ModelHashesfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringmodel()Returns the value of themodelrecord component.static ModelHashesstatic @Nullable Stringfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelHashes
public ModelHashes(@Nullable String model, @Nullable String before, @Nullable String after, @Nullable String candidate) Creates an instance of aModelHashesrecord class.- Parameters:
model- the value for themodelrecord componentbefore- the value for thebeforerecord componentafter- the value for theafterrecord componentcandidate- the value for thecandidaterecord component
-
-
Method Details
-
sha256
-
model
-
change
-
attach
-
attach
-
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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
after
Returns the value of theafterrecord component.- Returns:
- the value of the
afterrecord component
-
candidate
Returns the value of thecandidaterecord component.- Returns:
- the value of the
candidaterecord component
-