A
- generic attribute type@API(status=STABLE) public final class Binding<A> extends Object
routing trees
. They bind an attribute
to a route
. A binding represents a choice to the navigator
which route to
follow.Modifier and Type | Method and Description |
---|---|
static <A> Binding<A> |
create(A attribute,
Route route)
A static factory to create bindings.
|
A |
getAttribute() |
Route |
getRoute() |
public Route getRoute()
@API(status=INTERNAL) public static <A> Binding<A> create(@Nullable A attribute, Route route)
Bindings.on(Object)
and PartialBinding
provide the same
functionality but with some more syntactic sugar.A
- generic attribute typeattribute
- attribute to bindroute
- route to bind toPartialBinding
Copyright © 2015–2018 Zalando SE. All rights reserved.