Class NoTransition<R>

  • Type Parameters:
    R - the resource type that will be transitioned into a Target.
    All Implemented Interfaces:
    Transition<R>

    public class NoTransition<R>
    extends java.lang.Object
    implements Transition<R>
    A simple Transition that performs no actions.
    • Constructor Detail

      • NoTransition

        public NoTransition()
    • Method Detail

      • transition

        public boolean transition​(java.lang.Object current,
                                  Transition.ViewAdapter adapter)
        Performs no animation and always returns false.
        Specified by:
        transition in interface Transition<R>
        Parameters:
        current - The new resource that will be displayed in the view.
        adapter - The Transition.ViewAdapter wrapping a view that can at least return an View from Transition.ViewAdapter.getView().
        Returns:
        True if in the process of running the transition, the new resource was put on the view, false if the caller needs to manually put the current resource on the view.