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

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

public static class Sha1DState.FailedImpl<T>
extends DownloaderState.AbstractFailed
implements Sha1DState.Failed<T>

An implementation of the failed 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.FailedImpl(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.AbstractFailed
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.FailedImpl

public Sha1DState.FailedImpl(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.Failed
Returns the delegate downloader state.

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

equals

public boolean equals(Object otherObject)

Overrides:
equals in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.