public abstract class SCMHeadCategory extends SCMCategory<SCMHead>
SCMHead, for example: branches, tags, change requests, mainlines, features, etc.| Constructor and Description |
|---|
SCMHeadCategory(org.jvnet.localizer.Localizable pronoun) |
SCMHeadCategory(String urlName,
org.jvnet.localizer.Localizable pronoun) |
| Modifier and Type | Method and Description |
|---|---|
static List<SCMHeadCategory> |
addUncategorizedIfMissing(List<SCMHeadCategory> categories)
Ensures that the supplied list of categories includes the
UncategorizedSCMHeadCategory. |
static List<SCMHeadCategory> |
collect(Iterable<SCMSource> sources)
Iterates
SCMSource instances collecting the unique list of SCMHeadCategory instances. |
static Map<String,SCMHeadCategory> |
collectAndSimplify(Iterable<SCMSource> sources)
Collects the
SCMHeadCategory instances from a set of SCMSource instances and simplifies the
result. |
protected org.jvnet.localizer.Localizable |
defaultDisplayName()
The default display name.
|
static Map<String,SCMHeadCategory> |
simplify(Iterable<SCMHeadCategory> categories)
Simplifies a collection of
SCMHeadCategory replacing duplicates with their union(List). |
static SCMHeadCategory |
union(List<SCMHeadCategory> categories)
Reduces a list of categories into a single composite category.
|
getDisplayName, getName, group, group, isMatch, isMatch, isUncategorized, toDisplayName, toDisplayName, toShortUrl, toShortUrlpublic SCMHeadCategory(@CheckForNull
org.jvnet.localizer.Localizable pronoun)
public SCMHeadCategory(@NonNull
String urlName,
@CheckForNull
org.jvnet.localizer.Localizable pronoun)
@NonNull public static List<SCMHeadCategory> collect(@NonNull Iterable<SCMSource> sources)
SCMSource instances collecting the unique list of SCMHeadCategory instances.sources - the SCMSource instances to iterate.SCMHeadCategory instances.public static List<SCMHeadCategory> addUncategorizedIfMissing(List<SCMHeadCategory> categories)
UncategorizedSCMHeadCategory.categories - the list of SCMHeadCategory instances (must be mutable)public static SCMHeadCategory union(List<SCMHeadCategory> categories)
categories - the list of categories (must contain at least one element).public static Map<String,SCMHeadCategory> simplify(Iterable<SCMHeadCategory> categories)
SCMHeadCategory replacing duplicates with their union(List).categories - the collection of categories to simplify.SCMCategory.getName().public static Map<String,SCMHeadCategory> collectAndSimplify(@NonNull Iterable<SCMSource> sources)
SCMHeadCategory instances from a set of SCMSource instances and simplifies the
result.sources - the SCMSource instancesSCMCategory.getName().simplify(Iterable),
addUncategorizedIfMissing(List),
SCMCategory.group(Iterable),
collect(Iterable)@NonNull protected org.jvnet.localizer.Localizable defaultDisplayName()
defaultDisplayName in class SCMCategory<SCMHead>SCMCategory.Copyright © 2016–2019. All rights reserved.