Package com.mooltiverse.oss.nyx.data
Class Message
- java.lang.Object
-
- com.mooltiverse.oss.nyx.data.Message
-
public class Message extends Object
This object is a Git commit message value holder independent from the underlying Git implementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getFooters()
Returns the immutable list of footers, where keys are names and values are values.String
getFullMessage()
Returns the full message.String
getShortMessage()
Returns the short message.String
toString()
-
-
-
Constructor Detail
-
Message
public Message(String fullMessage, String shortMessage, Map<String,String> footers)
Constructor.- Parameters:
fullMessage
- the full message. Cannot benull
shortMessage
- the short message. Cannot benull
footers
- the map of message footers, where keys are names and values are values. Cannot benull
-
-
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
.
-
-