Module ch.rasc.jcentserverclient
Package ch.rasc.jcentserverclient.models
Record Class ConnectionState
java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.ConnectionState
public record ConnectionState(Map<String,ChannelContext> channels, ConnectionTokenInfo connectionToken, Map<String,SubscriptionTokenInfo> subscriptionTokens, Object meta)
extends Record
Connection state information.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConnectionState(Map<String, ChannelContext> channels, ConnectionTokenInfo connectionToken, Map<String, SubscriptionTokenInfo> subscriptionTokens, Object meta) Creates an instance of aConnectionStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionState.Builderbuilder()channels()Returns the value of thechannelsrecord component.Returns the value of theconnectionTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.meta()Returns the value of themetarecord component.Returns the value of thesubscriptionTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionState
public ConnectionState(Map<String, ChannelContext> channels, ConnectionTokenInfo connectionToken, Map<String, SubscriptionTokenInfo> subscriptionTokens, Object meta) Creates an instance of aConnectionStaterecord class.- Parameters:
channels- the value for thechannelsrecord componentconnectionToken- the value for theconnectionTokenrecord componentsubscriptionTokens- the value for thesubscriptionTokensrecord componentmeta- the value for themetarecord component
-
-
Method Details
-
builder
-
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). -
channels
Returns the value of thechannelsrecord component.- Returns:
- the value of the
channelsrecord component
-
connectionToken
Returns the value of theconnectionTokenrecord component.- Returns:
- the value of the
connectionTokenrecord component
-
subscriptionTokens
Returns the value of thesubscriptionTokensrecord component.- Returns:
- the value of the
subscriptionTokensrecord component
-
meta
Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-