Record Class ARI1InstrumentDescription
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.xml.internal.ARI1InstrumentDescription
- Record Components:
identifier
- The identifierversion
- The versionmetadata
- The metadataparameters
- The parametersports
- The ports
- All Implemented Interfaces:
ARI1InstrumentDescriptionType
public record ARI1InstrumentDescription(String identifier, ARI1Version version, Map<String,String> metadata, Map<ARI1ParameterId,ARI1ParameterDescriptionType> parameters, Map<ARI1PortId,ARI1PortDescriptionType> ports)
extends Record
implements ARI1InstrumentDescriptionType
An instrument description.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1InstrumentDescription
(String identifier, ARI1Version version, Map<String, String> metadata, Map<ARI1ParameterId, ARI1ParameterDescriptionType> parameters, Map<ARI1PortId, ARI1PortDescriptionType> ports) Creates an instance of aARI1InstrumentDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifier
record component.metadata()
Returns the value of themetadata
record component.Returns the value of theparameters
record component.ports()
Returns the value of theports
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
ARI1InstrumentDescription
public ARI1InstrumentDescription(String identifier, ARI1Version version, Map<String, String> metadata, Map<ARI1ParameterId, ARI1ParameterDescriptionType> parameters, Map<ARI1PortId, ARI1PortDescriptionType> ports) Creates an instance of aARI1InstrumentDescription
record class.- Parameters:
identifier
- the value for theidentifier
record componentversion
- the value for theversion
record componentmetadata
- the value for themetadata
record componentparameters
- the value for theparameters
record componentports
- the value for theports
record component
-
-
Method Details
-
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 theidentifier
record component.- Specified by:
identifier
in interfaceARI1InstrumentDescriptionType
- Returns:
- the value of the
identifier
record component
-
version
Returns the value of theversion
record component.- Specified by:
version
in interfaceARI1InstrumentDescriptionType
- Returns:
- the value of the
version
record component
-
metadata
Returns the value of themetadata
record component.- Specified by:
metadata
in interfaceARI1InstrumentDescriptionType
- Returns:
- the value of the
metadata
record component
-
parameters
Returns the value of theparameters
record component.- Specified by:
parameters
in interfaceARI1InstrumentDescriptionType
- Returns:
- the value of the
parameters
record component
-
ports
Returns the value of theports
record component.- Specified by:
ports
in interfaceARI1InstrumentDescriptionType
- Returns:
- the value of the
ports
record component
-