示例#1
0
 @Override
 public boolean equals(Object o) {
   if (this == o) {
     return true;
   }
   if (!(o instanceof MimeType)) {
     return false;
   }
   final MimeType type = (MimeType) o;
   return MiscUtil.equals(Name, type.Name) && MiscUtil.mapsEquals(myParameters, type.myParameters);
 }
示例#2
0
 public boolean weakEquals(MimeType type) {
   return MiscUtil.equals(Name, type.Name);
 }