spring-framework / org.springframework.web.reactive.result.method / RequestMappingInfo / compareTo

compareTo

fun compareTo(other: RequestMappingInfo, exchange: ServerWebExchange): 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(ServerWebExchange) to ensure they have conditions with content relevant to current request.