Package fi.evolver.script.app
Record Class Apt.Source
java.lang.Object
java.lang.Record
fi.evolver.script.app.Apt.Source
- Enclosing class:
Apt
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Apt.Source.Builderstatic Apt.Source.Builderstatic Apt.Source.BuilderReturns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.Returns the value of thekeyringNamerecord component.Returns the value of thepublicKeyUrirecord component.suites()Returns the value of thesuitesrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
Source
public Source(String identifier, URI uri, List<String> suites, List<String> components, String keyringName, URI publicKeyUri) Creates an instance of aSourcerecord class.- Parameters:
identifier- the value for theidentifierrecord componenturi- the value for theurirecord componentsuites- the value for thesuitesrecord componentcomponents- the value for thecomponentsrecord componentkeyringName- the value for thekeyringNamerecord componentpublicKeyUri- the value for thepublicKeyUrirecord component
-
-
Method Details
-
builder
-
builder
public static Apt.Source.Builder builder(String identifier, URI uri, String suite, String component) -
builder
-
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). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
suites
Returns the value of thesuitesrecord component.- Returns:
- the value of the
suitesrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
keyringName
Returns the value of thekeyringNamerecord component.- Returns:
- the value of the
keyringNamerecord component
-
publicKeyUri
Returns the value of thepublicKeyUrirecord component.- Returns:
- the value of the
publicKeyUrirecord component
-