Record Class FilterResult
java.lang.Object
java.lang.Record
ua.mcchickenstudio.opencreative.settings.filters.FilterResult
public record FilterResult(@NotNull String filteredMessage, @Nullable FilterRule rule)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFilterResult(@NotNull String filteredMessage, @Nullable FilterRule rule) Creates an instance of aFilterResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull StringReturns the value of thefilteredMessagerecord component.final inthashCode()Returns a hash code value for this object.@Nullable FilterRulerule()Returns the value of therulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilterResult
Creates an instance of aFilterResultrecord class.- Parameters:
filteredMessage- the value for thefilteredMessagerecord componentrule- the value for therulerecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
filteredMessage
Returns the value of thefilteredMessagerecord component.- Returns:
- the value of the
filteredMessagerecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-