Class Message
- java.lang.Object
-
- com.mooltiverse.oss.nyx.entities.git.Message
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Message>
public class Message extends Object implements Comparable<Message>, Cloneable, Serializable
This object is a Git commit message value holder independent from the underlying Git implementation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Message m)booleanequals(Object obj)Map<String,String>getFooters()Returns the immutable list of footers, where keys are names and values are values.StringgetFullMessage()Returns the full message.StringgetShortMessage()Returns the short message.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Message
public Message(String fullMessage, String shortMessage, Map<String,String> footers)
Constructor.- Parameters:
fullMessage- the full message. Cannot benullshortMessage- the short message. Cannot benullfooters- the map of message footers, where keys are names and values are values. Cannot benull
-
-
Method Detail
-
compareTo
public int compareTo(Message m)
- Specified by:
compareToin interfaceComparable<Message>
-
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.
-
-