Record Class MqttTopic
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.aiida.mqtt.topic.MqttTopic
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMqttTopic(String prefix, String permissionId, MqttTopicType topicType) Creates an instance of aMqttTopicrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static MqttTopicof(String permissionId, MqttTopicType topicType) Returns the value of thepermissionIdrecord component.prefix()Returns the value of theprefixrecord component.schemaTopic(AiidaSchema schema) Returns the value of thetopicTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DELIMITER
- See Also:
-
DEFAULT_PREFIX
- See Also:
-
MESSAGE_VERSION_LENGTH
public static final int MESSAGE_VERSION_LENGTH -
PERMISSION_ID_LENGTH
public static final int PERMISSION_ID_LENGTH- See Also:
-
DELIMITER_LENGTH
public static final int DELIMITER_LENGTH
-
-
Constructor Details
-
MqttTopic
Creates an instance of aMqttTopicrecord class.- Parameters:
prefix- the value for theprefixrecord componentpermissionId- the value for thepermissionIdrecord componenttopicType- the value for thetopicTyperecord component
-
-
Method Details
-
of
-
eddieTopic
-
aiidaTopic
-
baseTopic
-
schemaTopic
-
aiidaAcl
-
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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Returns:
- the value of the
permissionIdrecord component
-
topicType
Returns the value of thetopicTyperecord component.- Returns:
- the value of the
topicTyperecord component
-