Record Class Provenance
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.Provenance
- Record Components:
fragmentPath- the component'sx-fragment-path: its fragment's path in the specification library, relative to the library's source root;nullwhen the contract does not saysha256- the lower-case hex SHA-256 of the component as bundled,x-fragment-pathincluded, in RFC 8785 canonical JSON
Where a component came from.
-
Constructor Summary
ConstructorsConstructorDescriptionProvenance(String fragmentPath, String sha256) Creates an instance of aProvenancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefragmentPathrecord component.final inthashCode()Returns a hash code value for this object.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Provenance
Creates an instance of aProvenancerecord class.- Parameters:
fragmentPath- the value for thefragmentPathrecord componentsha256- the value for thesha256record 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). -
fragmentPath
Returns the value of thefragmentPathrecord component.- Returns:
- the value of the
fragmentPathrecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-