@Override public boolean equals(@Nullable Object obj) { if (null == obj) { return false; } if (obj == this) { return true; } if (!(obj instanceof OWLDocumentFormatFactory)) { return false; } OWLDocumentFormatFactory otherFactory = (OWLDocumentFormatFactory) obj; return getKey().equals(otherFactory.getKey()); } }
@Override public boolean equals(@Nullable Object obj) { if (null == obj) { return false; } if (obj == this) { return true; } if (!(obj instanceof OWLDocumentFormatFactory)) { return false; } OWLDocumentFormatFactory otherFactory = (OWLDocumentFormatFactory) obj; return getKey().equals(otherFactory.getKey()); } }
@Override public boolean equals(@Nullable Object obj) { if (null == obj) { return false; } if (obj == this) { return true; } if (!(obj instanceof OWLDocumentFormatFactory)) { return false; } OWLDocumentFormatFactory otherFactory = (OWLDocumentFormatFactory) obj; return getKey().equals(otherFactory.getKey()); } }
/** * Use the format to select a sublist of parsers. * * @param format document format * @param parsers parsers * @return candidate parsers */ private static PriorityCollection<OWLParserFactory> getParsersByFormat(OWLDocumentFormat format, PriorityCollection<OWLParserFactory> parsers) { PriorityCollection<OWLParserFactory> candidateParsers = new PriorityCollection<>(PriorityCollectionSorting.NEVER); for (OWLParserFactory parser : parsers) { if (parser.getSupportedFormat().getKey().equals(format.getKey())) { candidateParsers.add(parser); } } return candidateParsers; }
/** * Use the format to select a sublist of parsers. * * @param format document format * @param parsers parsers * @return candidate parsers */ private static PriorityCollection<OWLParserFactory> getParsersByFormat(OWLDocumentFormat format, PriorityCollection<OWLParserFactory> parsers) { PriorityCollection<OWLParserFactory> candidateParsers = new PriorityCollection<>(PriorityCollectionSorting.NEVER); for (OWLParserFactory parser : parsers) { if (parser.getSupportedFormat().getKey().equals(format.getKey())) { candidateParsers.add(parser); } } return candidateParsers; }
/** * Use the format to select a sublist of parsers. * * @param format document format * @param parsers parsers * @return candidate parsers */ private static PriorityCollection<OWLParserFactory> getParsersByFormat(OWLDocumentFormat format, PriorityCollection<OWLParserFactory> parsers) { PriorityCollection<OWLParserFactory> candidateParsers = new PriorityCollection<>(PriorityCollectionSorting.NEVER); for (OWLParserFactory parser : parsers) { if (parser.getSupportedFormat().getKey().equals(format.getKey())) { candidateParsers.add(parser); } } return candidateParsers; }
/** * Use the format to select a sublist of parsers. * * @param format document format * @param parsers parsers * @return candidate parsers */ private static PriorityCollection<OWLParserFactory> getParsersByFormat(OWLDocumentFormat format, PriorityCollection<OWLParserFactory> parsers) { PriorityCollection<OWLParserFactory> candidateParsers = new PriorityCollection<>(PriorityCollectionSorting.NEVER); for (OWLParserFactory parser : parsers) { if (parser.getSupportedFormat().getKey().equals(format.getKey())) { candidateParsers.add(parser); } } return candidateParsers; }