Package dev.voidframework.web.routing
Record Class ResolvedRoute
java.lang.Object
java.lang.Record
dev.voidframework.web.routing.ResolvedRoute
- Record Components:
filterClassTypes- The filter class types to applycontrollerClassType- The controller class typemethod- The method to callextractedParameterValues- The extracted parameters from the route
public record ResolvedRoute(List<Class<? extends Filter>> filterClassTypes, Class<?> controllerClassType, Method method, Map<String,String> extractedParameterValues)
extends Record
Represents a resolved route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the value of thecontrollerClassTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextractedParameterValuesrecord component.Returns the value of thefilterClassTypesrecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedRoute
public ResolvedRoute(List<Class<? extends Filter>> filterClassTypes, Class<?> controllerClassType, Method method, Map<String, String> extractedParameterValues) Creates an instance of aResolvedRouterecord class.- Parameters:
filterClassTypes- the value for thefilterClassTypesrecord componentcontrollerClassType- the value for thecontrollerClassTyperecord componentmethod- the value for themethodrecord componentextractedParameterValues- the value for theextractedParameterValuesrecord 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). -
filterClassTypes
Returns the value of thefilterClassTypesrecord component.- Returns:
- the value of the
filterClassTypesrecord component
-
controllerClassType
Returns the value of thecontrollerClassTyperecord component.- Returns:
- the value of the
controllerClassTyperecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
extractedParameterValues
Returns the value of theextractedParameterValuesrecord component.- Returns:
- the value of the
extractedParameterValuesrecord component
-