org.lastbamboo.common.download
Class Sha1DState.DownloadingImpl<T>

java.lang.Object
  extended by org.lastbamboo.common.download.DownloaderState.AbstractRunning
      extended by org.lastbamboo.common.download.Sha1DState.DownloadingImpl<T>
Type Parameters:
T - The delegate state type.
All Implemented Interfaces:
DownloaderState, Sha1DState<T>, Sha1DState.Downloading<T>
Enclosing interface:
Sha1DState<DelegateStateT>

public static class Sha1DState.DownloadingImpl<T>
extends DownloaderState.AbstractRunning
implements Sha1DState.Downloading<T>

An implementation of the downloading state.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.Sha1DState
Sha1DState.Downloading<T>, Sha1DState.DownloadingImpl<T>, Sha1DState.Failed<T>, Sha1DState.FailedImpl<T>, Sha1DState.Sha1Mismatch<T>, Sha1DState.Sha1MismatchImpl<T>, Sha1DState.VerifiedSha1<T>, Sha1DState.VerifiedSha1Impl<T>, Sha1DState.VerifyingSha1<T>, Sha1DState.VerifyingSha1Impl<T>, Sha1DState.Visitor<T,DelegateStateT>, Sha1DState.VisitorAdapter<T,DelegateStateT>
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded
 
Constructor Summary
Sha1DState.DownloadingImpl(T delegateState)
          Constructs a new state.
 
Method Summary
<ReturnT> ReturnT
accept(Sha1DState.Visitor<ReturnT,T> visitor)
          Accepts a visitor to this state.
 boolean equals(Object otherObject)
          
 T getDelegateState()
          Returns the delegate downloader 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

Sha1DState.DownloadingImpl

public Sha1DState.DownloadingImpl(T delegateState)
Constructs a new state.

Parameters:
delegateState - The delegate state.
Method Detail

accept

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

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

getDelegateState

public T getDelegateState()
Description copied from interface: Sha1DState.Downloading
Returns the delegate downloader state.

Specified by:
getDelegateState in interface Sha1DState.Downloading<T>
Returns:
The delegate downloader state.

equals

public boolean equals(Object otherObject)

Overrides:
equals in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.