Record Class ARI1JInstrumentDescription
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.json_data.internal.ARI1JInstrumentDescription
- Record Components:
schema- The schema identifiergroup- The instrument groupidentifier- The unique identifier of the instrumentversion- The version of the instrumentmetadata- The metadata strings declared in the instrument descriptionparameters- The parameters declared by the instrumentports- The ports declared by the instrument
- All Implemented Interfaces:
ARI1JElementType
public record ARI1JInstrumentDescription(String schema, ARI1JDottedName group, ARI1JDottedName identifier, ARI1JVersion version, Map<String,String> metadata, List<ARI1JParameterDescriptionType> parameters, List<ARI1JPortDescription> ports)
extends Record
implements ARI1JElementType
Create an instrument description.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1JInstrumentDescription(String schema, ARI1JDottedName group, ARI1JDottedName identifier, ARI1JVersion version, Map<String, String> metadata, List<ARI1JParameterDescriptionType> parameters, List<ARI1JPortDescription> ports) Create an instrument description. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of theparametersrecord component.ports()Returns the value of theportsrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ARI1JInstrumentDescription
public ARI1JInstrumentDescription(@JsonPropertyDescription("The schema identifier.") String schema, @JsonPropertyDescription("The instrument group.") ARI1JDottedName group, @JsonPropertyDescription("The instrument ID.") ARI1JDottedName identifier, @JsonPropertyDescription("The instrument version.") ARI1JVersion version, @JsonPropertyDescription("The instrument metadata.") Map<String, String> metadata, @JsonPropertyDescription("The instrument parameters.") List<ARI1JParameterDescriptionType> parameters, @JsonPropertyDescription("The instrument ports.") List<ARI1JPortDescription> ports) Create an instrument description.- Parameters:
schema- The schema identifiergroup- The instrument groupidentifier- The unique identifier of the instrumentversion- The version of the instrumentmetadata- The metadata strings declared in the instrument descriptionparameters- The parameters declared by the instrumentports- The ports declared by the instrument
-
-
Method Details
-
toString
-
hashCode
-
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). -
schema
-
group
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
version
-
metadata
-
parameters
@JsonPropertyDescription("The instrument parameters.") public List<ARI1JParameterDescriptionType> parameters()Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
ports
-