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 fixture
verb - the HTTP verb, e.g. GET
path - the endpoint path
declaringClass - the implementing class's fully-qualified name, or null when implementedAt is null
declaredAt - when the endpoint was first declared in the contract, or null
implementedAt - when a real implementation was first detected, or null
stubbedAt - when a consumer-facing stub first appeared, or null - independent of every other field
verifiedAt - when a passing test first confirmed the implementation matches the contract, or null
lastSeenAt - when this endpoint was last observed present
removedAt - when this endpoint was first observed missing, or null while 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 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 a ApiContractFixtureRecord record class.
      Parameters:
      fingerprint - the value for the fingerprint record component
      verb - the value for the verb record component
      path - the value for the path record component
      declaringClass - the value for the declaringClass record component
      declaredAt - the value for the declaredAt record component
      implementedAt - the value for the implementedAt record component
      stubbedAt - the value for the stubbedAt record component
      verifiedAt - the value for the verifiedAt record component
      lastSeenAt - the value for the lastSeenAt record component
      removedAt - the value for the removedAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fingerprint

      public String fingerprint()
      Returns the value of the fingerprint record component.
      Returns:
      the value of the fingerprint record component
    • verb

      public String verb()
      Returns the value of the verb record component.
      Returns:
      the value of the verb record component
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • declaringClass

      public String declaringClass()
      Returns the value of the declaringClass record component.
      Returns:
      the value of the declaringClass record component
    • declaredAt

      public Instant declaredAt()
      Returns the value of the declaredAt record component.
      Returns:
      the value of the declaredAt record component
    • implementedAt

      public Instant implementedAt()
      Returns the value of the implementedAt record component.
      Returns:
      the value of the implementedAt record component
    • stubbedAt

      public Instant stubbedAt()
      Returns the value of the stubbedAt record component.
      Returns:
      the value of the stubbedAt record component
    • verifiedAt

      public Instant verifiedAt()
      Returns the value of the verifiedAt record component.
      Returns:
      the value of the verifiedAt record component
    • lastSeenAt

      public Instant lastSeenAt()
      Returns the value of the lastSeenAt record component.
      Returns:
      the value of the lastSeenAt record component
    • removedAt

      public Instant removedAt()
      Returns the value of the removedAt record component.
      Returns:
      the value of the removedAt record component