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