@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionAnchor provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<?> toPageType = typeargs[0]; return new TransitionAnchor(navigation, toPageType, htFactory); }
/** * Gets an instance of a {@link TransitionAnchor} without any additional * {@link PageState}. */ public TransitionAnchor<P> get() { return new TransitionAnchor<P>(navigation, toPageWidgetType, htFactory); }
/** * Gets an instance of a {@link TransitionAnchor} with the given {@link PageState}. * @param state */ public TransitionAnchor<P> get(Multimap<String, String> state) { return new TransitionAnchor<P>(navigation, toPageWidgetType, state, htFactory); }
/** * Gets an instance of a {@link TransitionAnchor} with the given {@link PageState}. * @param state */ public TransitionAnchor<P> get(Multimap<String, String> state) { return new TransitionAnchor<P>(navigation, toPageWidgetType, state, htFactory); }
/** * Gets an instance of a {@link TransitionAnchor} without any additional * {@link PageState}. */ public TransitionAnchor<P> get() { return new TransitionAnchor<P>(navigation, toPageWidgetType, htFactory); }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionAnchor provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<?> toPageType = typeargs[0]; return new TransitionAnchor(navigation, toPageType, htFactory); }
/** * Gets an instance of a {@link TransitionAnchor} with the given single piece of * {@link PageState}. This is a convenience for the use-case where the target * {@link Page} has a single piece of state, such as a UUID. * @param stateKey * @param stateValue */ public TransitionAnchor<P> get(String stateKey, String stateValue) { Multimap<String, String> state = HashMultimap.create(); state.put(stateKey, stateValue); return new TransitionAnchor<P>(navigation, toPageWidgetType, state, htFactory); }
/** * Gets an instance of a {@link TransitionAnchor} with the given single piece of * {@link PageState}. This is a convenience for the use-case where the target * {@link Page} has a single piece of state, such as a UUID. * @param stateKey * @param stateValue */ public TransitionAnchor<P> get(String stateKey, String stateValue) { Multimap<String, String> state = HashMultimap.create(); state.put(stateKey, stateValue); return new TransitionAnchor<P>(navigation, toPageWidgetType, state, htFactory); }