Record Class ApiContractFixtureRecord
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.fixture.ApiContractFixtureRecord
- Record Components:
fingerprint- stable identifier, unique within the generated fixtureverb- the HTTP verb, e.g.GETpath- the endpoint pathdeclaringClass- the implementing class's fully-qualified name, ornullwhenimplementedAtisnulldeclaredAt- when the endpoint was first declared in the contract, ornullimplementedAt- when a real implementation was first detected, ornullstubbedAt- when a consumer-facing stub first appeared, ornull- independent of every other fieldverifiedAt- when a passing test first confirmed the implementation matches the contract, ornulllastSeenAt- when this endpoint was last observed presentremovedAt- when this endpoint was first observed missing, ornullwhile still present
public record ApiContractFixtureRecord(String fingerprint, String verb, String path, String declaringClass, Instant declaredAt, Instant implementedAt, Instant stubbedAt, Instant verifiedAt, Instant lastSeenAt, Instant removedAt)
extends Record
One generated row of the API-contract progress history, in
ApiContractTrackerSource's own field shape -
fingerprint, verb, path, declaringClass, declaredAt,
implementedAt, stubbedAt, verifiedAt, lastSeenAt,
removedAt.-
Constructor Summary
ConstructorsConstructorDescriptionApiContractFixtureRecord(String fingerprint, String verb, String path, String declaringClass, Instant declaredAt, Instant implementedAt, Instant stubbedAt, Instant verifiedAt, Instant lastSeenAt, Instant removedAt) Creates an instance of aApiContractFixtureRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredAtrecord component.Returns the value of thedeclaringClassrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimplementedAtrecord component.Returns the value of thelastSeenAtrecord component.path()Returns the value of thepathrecord component.Returns the value of theremovedAtrecord component.Returns the value of thestubbedAtrecord component.final StringtoString()Returns a string representation of this record class.verb()Returns the value of theverbrecord component.Returns the value of theverifiedAtrecord component.
-
Constructor Details
-
ApiContractFixtureRecord
public ApiContractFixtureRecord(String fingerprint, String verb, String path, String declaringClass, Instant declaredAt, Instant implementedAt, Instant stubbedAt, Instant verifiedAt, Instant lastSeenAt, Instant removedAt) Creates an instance of aApiContractFixtureRecordrecord class.- Parameters:
fingerprint- the value for thefingerprintrecord componentverb- the value for theverbrecord componentpath- the value for thepathrecord componentdeclaringClass- the value for thedeclaringClassrecord componentdeclaredAt- the value for thedeclaredAtrecord componentimplementedAt- the value for theimplementedAtrecord componentstubbedAt- the value for thestubbedAtrecord componentverifiedAt- the value for theverifiedAtrecord componentlastSeenAt- the value for thelastSeenAtrecord componentremovedAt- the value for theremovedAtrecord 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). -
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-
verb
Returns the value of theverbrecord component.- Returns:
- the value of the
verbrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
declaringClass
Returns the value of thedeclaringClassrecord component.- Returns:
- the value of the
declaringClassrecord component
-
declaredAt
Returns the value of thedeclaredAtrecord component.- Returns:
- the value of the
declaredAtrecord component
-
implementedAt
Returns the value of theimplementedAtrecord component.- Returns:
- the value of the
implementedAtrecord component
-
stubbedAt
Returns the value of thestubbedAtrecord component.- Returns:
- the value of the
stubbedAtrecord component
-
verifiedAt
Returns the value of theverifiedAtrecord component.- Returns:
- the value of the
verifiedAtrecord component
-
lastSeenAt
Returns the value of thelastSeenAtrecord component.- Returns:
- the value of the
lastSeenAtrecord component
-
removedAt
Returns the value of theremovedAtrecord component.- Returns:
- the value of the
removedAtrecord component
-