org.lastbamboo.common.download
Interface Sha1DState.Visitor<T,DelegateStateT>

Type Parameters:
T - The type of this visitor's return value.
DelegateStateT - The type of delegate state held in the SHA-1 state.
All Known Implementing Classes:
Sha1DState.VisitorAdapter
Enclosing interface:
Sha1DState<DelegateStateT>

public static interface Sha1DState.Visitor<T,DelegateStateT>

A visitor for a SHA-1 downloader state.


Method Summary
 T visitDownloading(Sha1DState.Downloading<DelegateStateT> state)
          Visits a downloading state.
 T visitFailed(Sha1DState.Failed<DelegateStateT> state)
          Visits a downloading state.
 T visitSha1Mismatch(Sha1DState.Sha1Mismatch<DelegateStateT> state)
          Visits a SHA-1 mismatch state.
 T visitVerifiedSha1(Sha1DState.VerifiedSha1<DelegateStateT> state)
          Visits a verified SHA-1 state.
 T visitVerifyingSha1(Sha1DState.VerifyingSha1<DelegateStateT> state)
          Visits a verifying SHA-1 state.
 

Method Detail

visitDownloading

T visitDownloading(Sha1DState.Downloading<DelegateStateT> state)
Visits a downloading state.

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

visitFailed

T visitFailed(Sha1DState.Failed<DelegateStateT> state)
Visits a downloading state.

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

visitVerifyingSha1

T visitVerifyingSha1(Sha1DState.VerifyingSha1<DelegateStateT> state)
Visits a verifying SHA-1 state.

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

visitVerifiedSha1

T visitVerifiedSha1(Sha1DState.VerifiedSha1<DelegateStateT> state)
Visits a verified SHA-1 state.

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

visitSha1Mismatch

T visitSha1Mismatch(Sha1DState.Sha1Mismatch<DelegateStateT> state)
Visits a SHA-1 mismatch state.

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


Copyright © 2013 LittleShoot. All Rights Reserved.