Add Message#hasAttachment convenience method
This commit is contained in:
parent
5b568e8c43
commit
0f1bce87e0
@ -179,6 +179,12 @@ public class Message implements Serializable {
|
||||
*/
|
||||
public Attachment getAttachment() { return attachment; }
|
||||
|
||||
/**
|
||||
* @return {@code true} if an attachment is present
|
||||
* @since Envoy Common v0.1-beta
|
||||
*/
|
||||
public boolean hasAttachment() { return attachment != null; }
|
||||
|
||||
/**
|
||||
* @return the current status of this message
|
||||
* @since Envoy Common v0.2-alpha
|
||||
|
Reference in New Issue
Block a user