org.lastbamboo.common.download
Interface MoverDState.Visitor<T,DelegateStateT>

Type Parameters:
T - The type of this visitor's return value.
DelegateStateT - The type of delegate state held in the mover state.
All Known Implementing Classes:
MoverDState.VisitorAdapter
Enclosing interface:
MoverDState<DelegateStateT>

public static interface MoverDState.Visitor<T,DelegateStateT>

A visitor for a mover downloader state.


Method Summary
 T visitDownloading(MoverDState.Downloading<DelegateStateT> state)
          Visits a downloading state.
 T visitFailed(MoverDState.Failed<DelegateStateT> state)
          Visits a failed state.
 T visitMoved(MoverDState.Moved<DelegateStateT> state)
          Visits a moved state.
 T visitMovedToITunes(MoverDState.MovedToITunes<DelegateStateT> state)
          Visits a moved to iTunes state.
 T visitMoveFailed(MoverDState.MoveFailed<DelegateStateT> state)
          Visits a move failed state.
 T visitMoving(MoverDState.Moving<DelegateStateT> state)
          Visits a moving state.
 

Method Detail

visitDownloading

T visitDownloading(MoverDState.Downloading<DelegateStateT> state)
Visits a downloading state.

Parameters:
state - The state.
Returns:
The result of the visitation.

visitFailed

T visitFailed(MoverDState.Failed<DelegateStateT> state)
Visits a failed state.

Parameters:
state - The state.
Returns:
The result of the visitation.

visitMoving

T visitMoving(MoverDState.Moving<DelegateStateT> state)
Visits a moving state.

Parameters:
state - The state.
Returns:
The result of the visitation.

visitMoved

T visitMoved(MoverDState.Moved<DelegateStateT> state)
Visits a moved state.

Parameters:
state - The state.
Returns:
The result of the visitation.

visitMovedToITunes

T visitMovedToITunes(MoverDState.MovedToITunes<DelegateStateT> state)
Visits a moved to iTunes state.

Parameters:
state - The state.
Returns:
The result of the visitation.

visitMoveFailed

T visitMoveFailed(MoverDState.MoveFailed<DelegateStateT> state)
Visits a move failed state.

Parameters:
state - The state.
Returns:
The result of the visitation.


Copyright © 2013 LittleShoot. All Rights Reserved.