Record Class EndpointHandler
java.lang.Object
java.lang.Record
io.github.kirstenali.racore.handlers.EndpointHandler
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointHandler(String method, Pattern pattern, Function<Request, ?> callback) Creates an instance of aEndpointHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EndpointHandler
Creates an instance of aEndpointHandlerrecord class.- Parameters:
method- the value for themethodrecord componentpattern- the value for thepatternrecord componentcallback- the value for thecallbackrecord 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). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
callback
-