Skip to content

Commit

Permalink
reviewd addTag, added hasTag
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Aug 19, 2016
1 parent 8f842a4 commit db5aee2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/minigl/src/main/java/org/jpos/gl/GLEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,14 @@ public Element toXML (boolean deep) {
* @return this
*/
public GLEntry addTag (String tag) {
getTags().add(tag);
if (tags == null)
tags = new Tags();
tags.add(tag);
return this;
}
public boolean hasTag (String tag) {
return tags != null && tags.contains(tag);
}
public boolean equals(Object other) {
if ( !(other instanceof GLEntry) ) return false;
GLEntry castOther = (GLEntry) other;
Expand Down

0 comments on commit db5aee2

Please sign in to comment.