Record Class ARI1PortDescription
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.ARI1PortDescription
- Record Components:
kind- The port kinddirection- The port directionnumber- The port numberlabel- The port labelsemantics- The port semanticsdocumentation- The documentation
- All Implemented Interfaces:
ARI1DocumentedType
public record ARI1PortDescription(ARI1PortKind kind, ARI1PortDirection direction, ARI1PortNumber number, String label, Set<String> semantics, Optional<ARI1Documentation> documentation)
extends Record
implements ARI1DocumentedType
A description of a port used to supply data to, or extract data from, an
instrument.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1PortDescription(ARI1PortKind kind, ARI1PortDirection direction, ARI1PortNumber number, String label, Set<String> semantics, Optional<ARI1Documentation> documentation) A description of a port used to supply data to, or extract data from, an instrument. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.Returns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.label()Returns the value of thelabelrecord component.number()Returns the value of thenumberrecord component.Returns the value of thesemanticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ARI1PortDescription
public ARI1PortDescription(ARI1PortKind kind, ARI1PortDirection direction, ARI1PortNumber number, String label, Set<String> semantics, Optional<ARI1Documentation> documentation) A description of a port used to supply data to, or extract data from, an instrument.- Parameters:
kind- The port kinddirection- The port directionnumber- The port numberlabel- The port labelsemantics- The port semanticsdocumentation- The documentation
-
-
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). -
kind
-
direction
-
number
-
label
-
semantics
-
documentation
Returns the value of thedocumentationrecord component.- Specified by:
documentationin interfaceARI1DocumentedType- Returns:
- the value of the
documentationrecord component
-