Package com.mooltiverse.oss.nyx.entities
Class CommitMessageConventions
java.lang.Object
com.mooltiverse.oss.nyx.entities.CommitMessageConventions
A value holder that models a section containing a map of commit message conventions.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CommitMessageConventions(List<String> enabled, Map<String, CommitMessageConvention> items) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of enabled items.getItems()Returns the map of the items configured in this section, where keys are item names and values are actual item objects.
-
Constructor Details
-
CommitMessageConventions
public CommitMessageConventions()Default constructor. Constructs a new object with no items. -
CommitMessageConventions
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 Details
-
getEnabled
Returns the list of enabled items.- Returns:
- the list of enabled items. It may be empty but not
nullif not configured.
-
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
nullif not configured.
-