Record Class TableApisProviderInterface.TableApiVersion

java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.specs.v1.TableApisProviderInterface.TableApiVersion
Record Components:
version - the version, as it appears in URLs
semanticVersion - its semantic version, when the API declares one
tableSpecPath - root-relative path of the table's OpenAPI document (JSON) in this version
Enclosing interface:
TableApisProviderInterface

public static record TableApisProviderInterface.TableApiVersion(String version, String semanticVersion, String tableSpecPath) extends Record
One version of an API.
  • Constructor Details

    • TableApiVersion

      public TableApiVersion(String version, String semanticVersion, String tableSpecPath)
      Creates an instance of a TableApiVersion record class.
      Parameters:
      version - the value for the version record component
      semanticVersion - the value for the semanticVersion record component
      tableSpecPath - the value for the tableSpecPath 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.
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • semanticVersion

      public String semanticVersion()
      Returns the value of the semanticVersion record component.
      Returns:
      the value of the semanticVersion record component
    • tableSpecPath

      public String tableSpecPath()
      Returns the value of the tableSpecPath record component.
      Returns:
      the value of the tableSpecPath record component