Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   TaskCharSet other = (TaskCharSet) obj;
   if (taskChars == null) {
     if (other.taskChars != null) return false;
   } else {
     return this.toJoinedStringOfIdentifiers().equals(other.toJoinedStringOfIdentifiers());
   }
   return true;
 }
Ejemplo n.º 2
0
 public boolean isPrefixOf(TaskCharSet other) {
   return StringUtils.startsWith(
       other.getJoinedStringOfIdentifiers(), this.getJoinedStringOfIdentifiers());
 }