Exemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null || !(obj instanceof DefaultId)) return false;
   DefaultId other = (DefaultId) obj;
   return name.equals(other.name)
       && ((tags == null && other.tags == null) || (tags != null && tags.equals(other.tags)));
 }