@Override public Boolean apply(MimeType other) { return eq(other); } };
/** * Returns <code>true</code> if this mime type is an equivalent for the specified type and subtype. * <p> * For example, a gzipped file may have both of these mime types defined, <code>application/x-compressed</code> or * <code>application/x-gzip</code>. * * @return <code>true</code> if this mime type is equal */ public boolean isEquivalentTo(String type, String subtype) { return eq(type, subtype) || mlist(equivalents).exists(eq); }
/** Two mime types are considered equal if type and subtype are equal. */ public boolean eq(MimeType other) { return eq(other.getType(), other.getSubtype()); }