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

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

public static class Sha1DState.VerifyingSha1Impl<T>
extends DownloaderState.AbstractRunning
implements Sha1DState.VerifyingSha1<T>

An implementation of the verifying SHA-1 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.VerifyingSha1Impl()
           
 
Method Summary
<ReturnT> ReturnT
accept(Sha1DState.Visitor<ReturnT,T> visitor)
          Accepts a visitor to this state.
 boolean equals(Object otherObject)
          
 
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.VerifyingSha1Impl

public Sha1DState.VerifyingSha1Impl()
Method Detail

accept

public <ReturnT> ReturnT accept(Sha1DState.Visitor<ReturnT,T> visitor)
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.

equals

public boolean equals(Object otherObject)

Overrides:
equals in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.