org.lastbamboo.common.download
Class MsDState.PausedImpl

java.lang.Object
  extended by org.lastbamboo.common.download.DownloaderState.AbstractRunning
      extended by org.lastbamboo.common.download.MsDState.PausedImpl
All Implemented Interfaces:
DownloaderState, MsDState, MsDState.Paused
Enclosing interface:
MsDState

public static class MsDState.PausedImpl
extends DownloaderState.AbstractRunning
implements MsDState.Paused

An implementation of the paused state.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.MsDState
MsDState.Canceled, MsDState.CanceledImpl, MsDState.Complete, MsDState.CompleteImpl, MsDState.CouldNotDetermineSources, MsDState.CouldNotDetermineSourcesImpl, MsDState.Downloading, MsDState.Failed, MsDState.FailedImpl, MsDState.GettingSources, MsDState.GettingSourcesImpl, MsDState.Idle, MsDState.IdleImpl, MsDState.LibTorrentDownloading, MsDState.LibTorrentDownloadingState, MsDState.LimeWireDownloading, MsDState.LimeWireDownloadingState, MsDState.LittleShootDownloading, MsDState.LittleShootDownloadingState, MsDState.NoSourcesAvailable, MsDState.NoSourcesAvailableImpl, MsDState.Paused, MsDState.PausedImpl, MsDState.Visitor<T>, MsDState.VisitorAdapter<T>
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded
 
Field Summary
 
Fields inherited from interface org.lastbamboo.common.download.MsDState
CANCELED, COMPLETE, COULD_NOT_DETERMINE_SOURCES, FAILED, GETTING_SOURCES, IDLE, NO_SOURCES_AVAILABLE
 
Constructor Summary
MsDState.PausedImpl(MsDState.Downloading downloading)
          Creates a new paused state.
 
Method Summary
<T> T
accept(MsDState.Visitor<T> visitor)
          Accepts a visitor to this state.
 boolean equals(Object otherObject)
           
 MsDState.Downloading getDownloadingState()
          Accessor for the underlying downloading state.
 
Methods inherited from class org.lastbamboo.common.download.DownloaderState.AbstractRunning
calculateTimeRemaining, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.lastbamboo.common.download.DownloaderState
getType
 

Constructor Detail

MsDState.PausedImpl

public MsDState.PausedImpl(MsDState.Downloading downloading)
Creates a new paused state.

Parameters:
downloading - The downloading state at the moment the pause was initiated.
Method Detail

accept

public <T> T accept(MsDState.Visitor<T> visitor)
Description copied from interface: MsDState
Accepts a visitor to this state.

Specified by:
accept in interface MsDState
Type Parameters:
T - The return type of the visitor.
Parameters:
visitor - The visitor.
Returns:
The result of the visitation.

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

getDownloadingState

public MsDState.Downloading getDownloadingState()
Description copied from interface: MsDState.Paused
Accessor for the underlying downloading state.

Specified by:
getDownloadingState in interface MsDState.Paused
Returns:
The underlying downloading state.


Copyright © 2013 LittleShoot. All Rights Reserved.