Tabnine Logo
AnnotatedObjectUtils.containSameAnnotations
Code IndexAdd Tabnine to your IDE (free)

How to use
containSameAnnotations
method
in
uk.ac.ebi.intact.model.util.AnnotatedObjectUtils

Best Java code snippets using uk.ac.ebi.intact.model.util.AnnotatedObjectUtils.containSameAnnotations (Showing top 2 results out of 315)

origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Checks if two given annotated objects contain the same set of annotations, xrefs and aliases
 *
 * @param ao1 Annotated object 1
 * @param ao2 Annotated object 2
 * @return if the two annotated objects contain the same set of annnotations, xrefs and aliases
 */
public static boolean containSameCollections(AnnotatedObject ao1, AnnotatedObject ao2) {
  if (!containSameXrefs(ao1, ao2)) {
    return false;
  }
  if (!containSameAnnotations(ao1, ao2)) {
    return false;
  }
  if (!containSameAliases(ao1, ao2)) {
    return false;
  }
  return true;
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Checks if two given annotated objects contain the same set of annotations, xrefs and aliases
 *
 * @param ao1 Annotated object 1
 * @param ao2 Annotated object 2
 * @return if the two annotated objects contain the same set of annnotations, xrefs and aliases
 */
public static boolean containSameCollections(AnnotatedObject ao1, AnnotatedObject ao2) {
  if (!containSameXrefs(ao1, ao2)) {
    return false;
  }
  if (!containSameAnnotations(ao1, ao2)) {
    return false;
  }
  if (!containSameAliases(ao1, ao2)) {
    return false;
  }
  return true;
}
uk.ac.ebi.intact.model.utilAnnotatedObjectUtilscontainSameAnnotations

Popular methods of AnnotatedObjectUtils

  • getAliasClassType
    Gets the generic Xref type for an AnnotatedObject class
  • getXrefClassType
    Gets the generic Xref type for an AnnotatedObject class
  • findAnnotationByTopicMiOrLabel
    Finds an Annotations with a topic that has an MI or label equal to the value provided
  • getParameterizedType
  • prepareShortLabel
    Trims a shortlabel if it is too long to be inserted in the database.
  • searchXrefs
    Retrieve the xrefs from an annotated object that comply with the filter.
  • areCollectionEqual
    Method to compare Annotation, Xref and Aliases collections
  • containSameAliases
  • containSameCollections
    Checks if two given annotated objects contain the same set of annotations, xrefs and aliases
  • containSameXrefs
  • containTheSameXrefs
    Check if the passed annotated objects contain the same set of filtered Xrefs.
  • createUniqueString
    Creates unique strings for Annotations,Xrefs and aliases.
  • containTheSameXrefs,
  • createUniqueString,
  • findParent,
  • isChildrenInitialized,
  • isCvTopicPublic,
  • isNewOrManaged,
  • removeChild,
  • searchXrefsByDatabase,
  • searchXrefsByQualifier

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Notification (javax.management)
  • JCheckBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now