Beispiel #1
0
 public boolean equals(final Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   final SwiftBlock other = (SwiftBlock) obj;
   if (unparsedTexts == null) {
     if (other.unparsedTexts != null) {
       return false;
     }
   } else if (!unparsedTexts.equals(other.unparsedTexts)) {
     return false;
   }
   return true;
 }
Beispiel #2
0
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((unparsedTexts == null) ? 0 : unparsedTexts.hashCode());
   return result;
 }