|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.util.RepositoryCollections
public final class RepositoryCollections
A bunch of static methods that are useful when dealing with collections of repositories.
This class is not meant to be instantiated, and has a private constructor to prevent it being instantiated.
Method Summary | |
---|---|
static com.atlassian.fage.Option<Repository> |
chooseRepository(java.util.Collection<? extends Repository> candidateRepositories,
java.lang.String defaultRepositoryKey)
Chooses a repository from a collection of candidate repositories, taking into consideration the given default repository, if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@NotNull public static com.atlassian.fage.Option<Repository> chooseRepository(@Nullable java.util.Collection<? extends Repository> candidateRepositories, @Nullable java.lang.String defaultRepositoryKey)
This implementation chooses a repository in this fashion:
candidateRepositories
- the collection of repositories from which the choice is madedefaultRepositoryKey
- the key of the default repository
Option
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |