Package com.mooltiverse.oss.nyx.entities
Class CommitMessageConventions
- java.lang.Object
-
- com.mooltiverse.oss.nyx.entities.CommitMessageConventions
-
public class CommitMessageConventions extends Object
A value holder that models a section containing a map of commit message conventions.
-
-
Constructor Summary
Constructors Constructor Description CommitMessageConventions()
Default constructor.CommitMessageConventions(List<String> enabled, Map<String,CommitMessageConvention> items)
Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getEnabled()
Returns the list of enabled items.Map<String,T>
getItems()
Returns the map of the items configured in this section, where keys are item names and values are actual item objects.
-
-
-
Constructor Detail
-
CommitMessageConventions
public CommitMessageConventions()
Default constructor. Constructs a new object with no items.
-
CommitMessageConventions
public CommitMessageConventions(List<String> enabled, Map<String,CommitMessageConvention> items)
Standard constructor. Constructs a new object with the given items.- Parameters:
enabled
- the list of names of enabled itemsitems
- the map of items- Throws:
NullPointerException
- if some argument isnull
-
-
Method Detail
-
getEnabled
public List<String> getEnabled()
Returns the list of enabled items.- Returns:
- the list of enabled items. It may be empty but not
null
if not configured.
-
getItems
public Map<String,T> getItems()
Returns the map of the items configured in this section, where keys are item names and values are actual item objects.- Returns:
- the map of the items configured in this section, where keys are item names
and values are actual item objects. It may be empty but not
null
if not configured.
-
-