Record Class Apt.Source

java.lang.Object
java.lang.Record
fi.evolver.script.app.Apt.Source
Enclosing class:
Apt

public static record Apt.Source(String identifier, URI uri, List<String> suites, List<String> components, String keyringName, URI publicKeyUri) extends Record
  • Constructor Details

    • Source

      public Source(String identifier, URI uri, List<String> suites, List<String> components, String keyringName, URI publicKeyUri)
      Creates an instance of a Source record class.
      Parameters:
      identifier - the value for the identifier record component
      uri - the value for the uri record component
      suites - the value for the suites record component
      components - the value for the components record component
      keyringName - the value for the keyringName record component
      publicKeyUri - the value for the publicKeyUri record component
  • Method Details

    • builder

      public static Apt.Source.Builder builder(String identifier, URI uri, String component)
    • builder

      public static Apt.Source.Builder builder(String identifier, URI uri, String suite, String component)
    • builder

      public static Apt.Source.Builder builder(String identifier, URI uri, List<String> suites, List<String> components)
    • 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.
    • identifier

      public String identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • uri

      public URI uri()
      Returns the value of the uri record component.
      Returns:
      the value of the uri record component
    • suites

      public List<String> suites()
      Returns the value of the suites record component.
      Returns:
      the value of the suites record component
    • components

      public List<String> components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component
    • keyringName

      public String keyringName()
      Returns the value of the keyringName record component.
      Returns:
      the value of the keyringName record component
    • publicKeyUri

      public URI publicKeyUri()
      Returns the value of the publicKeyUri record component.
      Returns:
      the value of the publicKeyUri record component