com.atlassian.bamboo.util
Class RepositoryCollections

java.lang.Object
  extended by com.atlassian.bamboo.util.RepositoryCollections

Deprecated.

@Deprecated
public final class RepositoryCollections
extends java.lang.Object

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.

Since:
v4.1

Method Summary
static Repository chooseRepository(java.util.Collection<? extends Repository> candidateRepositories)
          Deprecated. without replacement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

chooseRepository

@Nullable
@Deprecated
public static Repository chooseRepository(@Nullable
                                                              java.util.Collection<? extends Repository> candidateRepositories)
Deprecated. without replacement

Chooses a repository from a collection of candidate repositories, taking into consideration the given default repository, if any.

This implementation chooses a repository in this fashion:

Subversion, if available, unless the given default repository name corresponds to one of the candidate repositories, in which case the corresponding repository is chosen.

Parameters:
candidateRepositories - the collection of repositories from which the choice is made
Returns:
one of the candidate repositories


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.