Refactoring

This commit is contained in:
M66B
2018-11-11 07:07:41 +00:00
parent b4b173b8cf
commit 623ccaa522
5 changed files with 14 additions and 19 deletions

View File

@@ -126,6 +126,14 @@ public class EntityFolder implements Serializable {
public EntityFolder() {
}
boolean isOutgoing() {
return isOutgoing(this.type);
}
static boolean isOutgoing(String type) {
return DRAFTS.equals(type) || OUTBOX.equals(type) || SENT.equals(type);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof EntityFolder) {