Record Class ExperimentIdentity
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.jdbc.ExperimentIdentity
-
Constructor Summary
ConstructorsConstructorDescriptionExperimentIdentity(com.fasterxml.jackson.databind.JsonNode normalizedConfig, String canonicalJson, String canonicalYaml, String configHash, String experimentId) Creates an instance of aExperimentIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalJsonrecord component.Returns the value of thecanonicalYamlrecord component.Returns the value of theconfigHashrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentIdrecord component.static ExperimentIdentityfromCanonicalJson(String canonicalConfigJson) Builds canonical experiment identity from one canonical run config JSON payload.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNodeReturns the value of thenormalizedConfigrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExperimentIdentity
public ExperimentIdentity(com.fasterxml.jackson.databind.JsonNode normalizedConfig, String canonicalJson, String canonicalYaml, String configHash, String experimentId) Creates an instance of aExperimentIdentityrecord class.- Parameters:
normalizedConfig- the value for thenormalizedConfigrecord componentcanonicalJson- the value for thecanonicalJsonrecord componentcanonicalYaml- the value for thecanonicalYamlrecord componentconfigHash- the value for theconfigHashrecord componentexperimentId- the value for theexperimentIdrecord component
-
-
Method Details
-
fromCanonicalJson
Builds canonical experiment identity from one canonical run config JSON payload. -
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). -
normalizedConfig
public com.fasterxml.jackson.databind.JsonNode normalizedConfig()Returns the value of thenormalizedConfigrecord component.- Returns:
- the value of the
normalizedConfigrecord component
-
canonicalJson
Returns the value of thecanonicalJsonrecord component.- Returns:
- the value of the
canonicalJsonrecord component
-
canonicalYaml
Returns the value of thecanonicalYamlrecord component.- Returns:
- the value of the
canonicalYamlrecord component
-
configHash
Returns the value of theconfigHashrecord component.- Returns:
- the value of the
configHashrecord component
-
experimentId
Returns the value of theexperimentIdrecord component.- Returns:
- the value of the
experimentIdrecord component
-