/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SerializationFormat)) return false; SerializationFormat that = (SerializationFormat) o; if (!extension.equals(that.extension)) return false; return type.equals(that.type) && name.equals(that.name); }
private boolean isAcceptedAsAny(String format, SerializationFormatType formatType) { return !type.equals(formatType) && containsFormatName(format); }