Record Class MatrixPushRule
java.lang.Object
java.lang.Record
io.meeds.chat.model.MatrixPushRule
- Record Components:
kind- the rule kind:override,content,postcontent,room,senderorunderrideruleId- the rule id; a server-default rule's id starts with.enabled- whether the rule is enablednotifying- whether the rule's actions containnotify
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixPushRule(String kind, String ruleId, boolean enabled, boolean notifying) Creates an instance of aMatrixPushRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTells whether the rule is one of the server's defaults, which Synapse names with a leading dot, rather than a rule the account defined.kind()Returns the value of thekindrecord component.booleanReturns the value of thenotifyingrecord component.ruleId()Returns the value of theruleIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isServerDefault
public boolean isServerDefault()Tells whether the rule is one of the server's defaults, which Synapse names with a leading dot, rather than a rule the account defined.- Returns:
- true for a server-default rule
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
-
ruleId
-
enabled
-
notifying
-