org.littleshoot.util
Interface CandidateProvider<T>

Type Parameters:
T - The class of candidates.
All Known Implementing Classes:
DnsSrvCandidateProvider, SrvCandidateProvider

public interface CandidateProvider<T>

Interface providing candidates for any potential use. The Collection of candidates could be server to connect to, for example.


Method Summary
 T getCandidate()
          Accessor for a single candidate.
 Collection<T> getCandidates()
          Accessor for the Collection of candidates for the task at hand.
 

Method Detail

getCandidates

Collection<T> getCandidates()
Accessor for the Collection of candidates for the task at hand.

Returns:
The Collection of candidates for the task at hand.

getCandidate

T getCandidate()
Accessor for a single candidate.

Returns:
A single candidate.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.