| Modifier and Type | Method and Description |
|---|---|
static <T> Routed<T> |
empty()
Returns a singleton instance of a
Routed that represents a non-existent value. |
boolean |
isPresent()
Returns
true if Router found a matching value. |
Route |
route()
Returns the
Route which matched the RoutingContext. |
RoutingResult |
routingResult()
Returns the
RoutingResult. |
RoutingResultType |
routingResultType()
Returns the type of
RoutingResult. |
String |
toString() |
T |
value()
Returns the value.
|
public static <T> Routed<T> empty()
Routed that represents a non-existent value.public boolean isPresent()
true if Router found a matching value.public Route route()
Route which matched the RoutingContext.IllegalStateException - if there's no matchpublic RoutingResult routingResult()
RoutingResult.IllegalStateException - if there's no matchpublic RoutingResultType routingResultType()
RoutingResult.public T value()
IllegalStateException - if there's no matchCopyright © 2020 LeanCloud. All rights reserved.