org.lastbamboo.common.download
Interface MsDState.Visitor<T>

Type Parameters:
T - The type of this visitor's return value.
All Known Implementing Classes:
MsDState.VisitorAdapter
Enclosing interface:
MsDState

public static interface MsDState.Visitor<T>

A visitor for a downloader state.


Method Summary
 T visitCanceled(MsDState.Canceled state)
          Visits a canceled state.
 T visitComplete(MsDState.Complete state)
          Visits a complete state.
 T visitCouldNotDetermineSources(MsDState.CouldNotDetermineSources state)
          Visits a could not determine sources state.
 T visitFailed(MsDState.Failed state)
          Visits a general failed state.
 T visitGettingSources(MsDState.GettingSources state)
          Visits a getting sources state.
 T visitIdle(MsDState.Idle state)
          Visits an idle state.
 T visitLibTorrentDownloading(MsDState.LibTorrentDownloading libTorrentDownloadingState)
          Visits a downloading state for a LibTorrent download.
 T visitLimeWireDownloading(MsDState.LimeWireDownloading limeWireDownloadingState)
          Visits a downloading state for a LimeWire download.
 T visitLittleShootDownloading(MsDState.LittleShootDownloading littleShootDownloadingState)
          Visits a downloading state for a LittleShoot download.
 T visitNoSourcesAvailable(MsDState.NoSourcesAvailable state)
          Visits a no sources available state.
 T visitPaused(MsDState.Paused paused)
          Visits a paused state.
 

Method Detail

visitIdle

T visitIdle(MsDState.Idle state)
Visits an idle state.

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

visitGettingSources

T visitGettingSources(MsDState.GettingSources state)
Visits a getting sources state.

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

visitComplete

T visitComplete(MsDState.Complete state)
Visits a complete state.

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

visitPaused

T visitPaused(MsDState.Paused paused)
Visits a paused state.

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

visitCanceled

T visitCanceled(MsDState.Canceled state)
Visits a canceled state.

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

visitNoSourcesAvailable

T visitNoSourcesAvailable(MsDState.NoSourcesAvailable state)
Visits a no sources available state.

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

visitCouldNotDetermineSources

T visitCouldNotDetermineSources(MsDState.CouldNotDetermineSources state)
Visits a could not determine sources state.

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

visitFailed

T visitFailed(MsDState.Failed state)
Visits a general failed state.

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

visitLittleShootDownloading

T visitLittleShootDownloading(MsDState.LittleShootDownloading littleShootDownloadingState)
Visits a downloading state for a LittleShoot download.

Parameters:
littleShootDownloadingState - The LittleShoot downloading state to visit.
Returns:
The result of the visitation.

visitLimeWireDownloading

T visitLimeWireDownloading(MsDState.LimeWireDownloading limeWireDownloadingState)
Visits a downloading state for a LimeWire download.

Parameters:
limeWireDownloadingState - The LimeWire downloading state to visit.
Returns:
The result of the visitation.

visitLibTorrentDownloading

T visitLibTorrentDownloading(MsDState.LibTorrentDownloading libTorrentDownloadingState)
Visits a downloading state for a LibTorrent download.

Parameters:
libTorrentDownloadingState - The LibTorrent downloading state to visit.
Returns:
The result of the visitation.


Copyright © 2013 LittleShoot. All Rights Reserved.