Beispiel #1
0
 public boolean equals(@Nullable Object obj) {
   if (obj == this) {
     return true;
   }
   if ((obj instanceof MediaType)) {
     MediaType that = (MediaType) obj;
     return (this.type.equals(that.type))
         && (this.subtype.equals(that.subtype))
         && (parametersAsMap().equals(that.parametersAsMap()));
   }
   return false;
 }