Module ch.rasc.jcentserverclient
Package ch.rasc.jcentserverclient.models
Record Class SubscribeOptionOverride
java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.SubscribeOptionOverride
public record SubscribeOptionOverride(Boolean presence, Boolean joinLeave, Boolean forceRecovery, Boolean forcePositioning, Boolean forcePushJoinLeave)
extends Record
Override for channel subscription options.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforcePositioningrecord component.Returns the value of theforcePushJoinLeaverecord component.Returns the value of theforceRecoveryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejoinLeaverecord component.presence()Returns the value of thepresencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubscribeOptionOverride
public SubscribeOptionOverride(Boolean presence, Boolean joinLeave, Boolean forceRecovery, Boolean forcePositioning, Boolean forcePushJoinLeave) Creates an instance of aSubscribeOptionOverriderecord class.- Parameters:
presence- the value for thepresencerecord componentjoinLeave- the value for thejoinLeaverecord componentforceRecovery- the value for theforceRecoveryrecord componentforcePositioning- the value for theforcePositioningrecord componentforcePushJoinLeave- the value for theforcePushJoinLeaverecord 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). -
presence
Returns the value of thepresencerecord component.- Returns:
- the value of the
presencerecord component
-
joinLeave
Returns the value of thejoinLeaverecord component.- Returns:
- the value of the
joinLeaverecord component
-
forceRecovery
Returns the value of theforceRecoveryrecord component.- Returns:
- the value of the
forceRecoveryrecord component
-
forcePositioning
Returns the value of theforcePositioningrecord component.- Returns:
- the value of the
forcePositioningrecord component
-
forcePushJoinLeave
Returns the value of theforcePushJoinLeaverecord component.- Returns:
- the value of the
forcePushJoinLeaverecord component
-