Record Class Rule
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.subject.Rule
public record Rule(ReplaceMatchMappingRule replaceMatchMappingRule, IdentityMappingRule default_)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRule(ReplaceMatchMappingRule replaceMatchMappingRule, IdentityMappingRule default_) Creates an instance of aRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefault_()Returns the value of thedefault_record component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereplaceMatchMappingRulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Rule
Creates an instance of aRulerecord class.- Parameters:
replaceMatchMappingRule- the value for thereplaceMatchMappingRulerecord componentdefault_- the value for thedefault_record component
-
-
Method Details
-
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). -
replaceMatchMappingRule
Returns the value of thereplaceMatchMappingRulerecord component.- Returns:
- the value of the
replaceMatchMappingRulerecord component
-
default_
Returns the value of thedefault_record component.- Returns:
- the value of the
default_record component
-