Record Class CompactPathRule.CompactedEvent
java.lang.Object
java.lang.Record
org.eclipse.jetty.rewrite.handler.CompactPathRule.CompactedEvent
- Enclosing class:
- CompactPathRule
public static record CompactPathRule.CompactedEvent(Rule.Handler input, String changedPath, String message, CompactPathRule rule)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompactedEvent
(Rule.Handler input, String changedPath, String message, CompactPathRule rule) Creates an instance of aCompactedEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangedPath
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.input()
Returns the value of theinput
record component.message()
Returns the value of themessage
record component.rule()
Returns the value of therule
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CompactedEvent
Creates an instance of aCompactedEvent
record class.- Parameters:
input
- the value for theinput
record componentchangedPath
- the value for thechangedPath
record componentmessage
- the value for themessage
record componentrule
- the value for therule
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)
. -
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-
changedPath
Returns the value of thechangedPath
record component.- Returns:
- the value of the
changedPath
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
rule
Returns the value of therule
record component.- Returns:
- the value of the
rule
record component
-