spring-framework / org.springframework.web.servlet.mvc.method / RequestMappingInfo / compareTo

compareTo

fun compareTo(other: RequestMappingInfo, request: HttpServletRequest): Int

Compares "this" info (i.e. the current instance) with another info in the context of a request.

Note: It is assumed both instances have been obtained via #getMatchingCondition(HttpServletRequest) to ensure they have conditions with content relevant to current request.