Class MergepointMapping


  • public class MergepointMapping
    extends Object
    A mapping between the name of an mergepoint and and the action which should be performed at this point.
    • Constructor Detail

      • MergepointMapping

        public MergepointMapping​(String name)
        Constructor.
        Parameters:
        name - the name of the mergepoint, not null.
        Throws:
        IllegalArgumentException - if name is null.
      • MergepointMapping

        public MergepointMapping​(String name,
                                 List<MergepointAction> actions)
        Constructor.
        Parameters:
        name - the name of the mergepoint, not null.
        actions - the actions in this mergepoint.
        Throws:
        IllegalArgumentException - if name is null.
    • Method Detail

      • getName

        public String getName()
        Returns the name of the mergepoint.
        Returns:
        the name of the mergepoint, not null.
      • getActions

        public List<MergepointAction> getActions()
        Returns the list of actions executed at the mergepoint.
        Returns:
        the list of actions. Not null, may be empty.
      • addAction

        public void addAction​(MergepointAction action)
        Adds an action to this mergepont mapping at the end of the action list.
        Parameters:
        action - the action to add, not null.
        Throws:
        NullPointerException - if action is null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object