Class Message


  • public class Message
    extends Object
    This object is a Git commit message value holder independent from the underlying Git implementation.
    • Constructor Detail

      • Message

        public Message​(String fullMessage,
                       String shortMessage,
                       Map<String,​String> footers)
        Constructor.
        Parameters:
        fullMessage - the full message. Cannot be null
        shortMessage - the short message. Cannot be null
        footers - the map of message footers, where keys are names and values are values. Cannot be null
    • Method Detail

      • getFooters

        public Map<String,​String> getFooters()
        Returns the immutable list of footers, where keys are names and values are values.
        Returns:
        the immutable list of footers, where keys are names and values are values. May be empty but not null.
      • getFullMessage

        public String getFullMessage()
        Returns the full message.
        Returns:
        the full message. Never null.
      • getShortMessage

        public String getShortMessage()
        Returns the short message.
        Returns:
        the short message. Never null.