Package com.google.gerrit.entities
Class SubscribeSection
- java.lang.Object
-
- com.google.gerrit.entities.SubscribeSection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubscribeSection.Builder
-
Constructor Summary
Constructors Constructor Description SubscribeSection()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
appliesTo(BranchNameKey branch)
Determines if thebranch
could trigger a superproject update as allowed via this subscribe section.static SubscribeSection.Builder
builder(Project.NameKey project)
com.google.common.collect.ImmutableSet<BranchNameKey>
getDestinationBranches(BranchNameKey src, Collection<org.eclipse.jgit.lib.Ref> allRefsInRefsHeads)
Evaluates what the destination branches for the subscription are.protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec>
matchingRefSpecs()
Collection<String>
matchingRefSpecsAsString()
protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec>
multiMatchRefSpecs()
Collection<String>
multiMatchRefSpecsAsString()
abstract Project.NameKey
project()
abstract SubscribeSection.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
project
public abstract Project.NameKey project()
-
matchingRefSpecs
protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec> matchingRefSpecs()
-
multiMatchRefSpecs
protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec> multiMatchRefSpecs()
-
builder
public static SubscribeSection.Builder builder(Project.NameKey project)
-
toBuilder
public abstract SubscribeSection.Builder toBuilder()
-
appliesTo
public boolean appliesTo(BranchNameKey branch)
Determines if thebranch
could trigger a superproject update as allowed via this subscribe section.- Parameters:
branch
- the branch to check- Returns:
- if the branch could trigger a superproject update
-
matchingRefSpecsAsString
public Collection<String> matchingRefSpecsAsString()
-
multiMatchRefSpecsAsString
public Collection<String> multiMatchRefSpecsAsString()
-
getDestinationBranches
public com.google.common.collect.ImmutableSet<BranchNameKey> getDestinationBranches(BranchNameKey src, Collection<org.eclipse.jgit.lib.Ref> allRefsInRefsHeads)
Evaluates what the destination branches for the subscription are.
-
-