Class Binding<A>

java.lang.Object
org.zalando.riptide.Binding<A>
Type Parameters:
A - generic attribute type

@API(status=STABLE) public final class Binding<A> extends Object
Bindings are the building blocks of routing trees. They bind an attribute to a route. A binding represents a choice to the navigator which route to follow.
  • Method Details

    • getAttribute

      @Nullable public A getAttribute()
    • getRoute

      public Route getRoute()
    • create

      @API(status=INTERNAL) public static <A> Binding<A> create(@Nullable A attribute, Route route)
      A static factory to create bindings. Bindings.on(Object) and PartialBinding provide the same functionality but with some more syntactic sugar.
      Type Parameters:
      A - generic attribute type
      Parameters:
      attribute - attribute to bind
      route - route to bind to
      Returns:
      a binding of attribute to route
      See Also: