/** * Gets all the Xrefs for the CvDatabase with the passed mi identifier * * @param annotatedObject the Object with the xrefs * @param databaseMi the database MI to look for * @return list of Xrefs * @deprecated use AnnotatedObjectUtils.searchXrefsByDatabase instead */ @Deprecated public static <X extends Xref> List<X> getXrefsFilteredByDatabase(AnnotatedObject<X, ?> annotatedObject, String databaseMi) { if (annotatedObject == null) throw new NullPointerException("Null annotatedObject"); if (databaseMi == null) throw new NullPointerException("Database MI Identifier is mandatory"); return new ArrayList<X>(AnnotatedObjectUtils.searchXrefsByDatabase(annotatedObject, databaseMi)); } }
/** * Gets all the Xrefs for the CvDatabase with the passed mi identifier * * @param annotatedObject the Object with the xrefs * @param databaseMi the database MI to look for * @return list of Xrefs * @deprecated use AnnotatedObjectUtils.searchXrefsByDatabase instead */ @Deprecated public static <X extends Xref> List<X> getXrefsFilteredByDatabase(AnnotatedObject<X, ?> annotatedObject, String databaseMi) { if (annotatedObject == null) throw new NullPointerException("Null annotatedObject"); if (databaseMi == null) throw new NullPointerException("Database MI Identifier is mandatory"); return new ArrayList<X>(AnnotatedObjectUtils.searchXrefsByDatabase(annotatedObject, databaseMi)); } }