@Immutable public class MqttAuth extends MqttMessageWithUserProperties.WithReason.WithCode<Mqtt5AuthReasonCode> implements Mqtt5Auth
MqttMessageWithUserProperties.WithReason.WithCode.WithId<R extends Mqtt5ReasonCode>
MqttMessageWithUserProperties.WithReason.WithCode<R extends Mqtt5ReasonCode>, MqttMessageWithUserProperties.WithReason.WithCodesAndId<R extends Mqtt5ReasonCode>
MqttMessageWithUserProperties.WithReason
MqttMessage.WithUserProperties
Constructor and Description |
---|
MqttAuth(@NotNull Mqtt5AuthReasonCode reasonCode,
@NotNull MqttUtf8StringImpl method,
@Nullable java.nio.ByteBuffer data,
@Nullable MqttUtf8StringImpl reasonString,
@NotNull MqttUserPropertiesImpl userProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object o) |
@NotNull java.util.Optional<java.nio.ByteBuffer> |
getData() |
@NotNull MqttUtf8StringImpl |
getMethod() |
@Nullable java.nio.ByteBuffer |
getRawData() |
int |
hashCode() |
protected @NotNull java.lang.String |
toAttributeString() |
@NotNull java.lang.String |
toString() |
getReasonCode, partialEquals, partialHashCode
getRawReasonString, getReasonString, partialEquals
getUserProperties, partialEquals
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getReasonCode, getReasonString, getType, getUserProperties
public MqttAuth(@NotNull @NotNull Mqtt5AuthReasonCode reasonCode, @NotNull @NotNull MqttUtf8StringImpl method, @Nullable @Nullable java.nio.ByteBuffer data, @Nullable @Nullable MqttUtf8StringImpl reasonString, @NotNull @NotNull MqttUserPropertiesImpl userProperties)
@NotNull public @NotNull MqttUtf8StringImpl getMethod()
getMethod
in interface Mqtt5EnhancedAuth
@NotNull public @NotNull java.util.Optional<java.nio.ByteBuffer> getData()
getData
in interface Mqtt5EnhancedAuth
@Nullable public @Nullable java.nio.ByteBuffer getRawData()
@NotNull protected @NotNull java.lang.String toAttributeString()
toAttributeString
in class MqttMessageWithUserProperties.WithReason
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(@Nullable @Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object