public static boolean sameAnnotation( Annotation a1, Annotation a2 ) { if (a1.getAc() != null && a2.getAc() != null) { return a1.getAc().equals(a2.getAc()); } if ( !same( a1.getAnnotationText(), a2.getAnnotationText() ) ) { return false; } if ( !CvObjectUtils.areEqual( a1.getCvTopic(), a2.getCvTopic() ) ) { return false; } return true; }
public static boolean sameXref( Xref x1, Xref x2 ) { if (x1.getAc() != null && x2.getAc() != null) { return x1.getAc().equals(x2.getAc()); } if ( !same( x1.getPrimaryId(), x2.getPrimaryId() ) ) { return false; } if ( !CvObjectUtils.areEqual( x1.getCvDatabase(), x2.getCvDatabase() ) ) { return false; } if ( !CvObjectUtils.areEqual( x1.getCvXrefQualifier(), x2.getCvXrefQualifier() ) ) { return false; } if ( !same( x1.getSecondaryId(), x2.getSecondaryId() ) ) { return false; } if ( !same( x1.getDbRelease(), x2.getDbRelease() ) ) { return false; } return true; }
public static boolean sameAnnotation( Annotation a1, Annotation a2 ) { if (a1.getAc() != null && a2.getAc() != null) { return a1.getAc().equals(a2.getAc()); } if ( !same( a1.getAnnotationText(), a2.getAnnotationText() ) ) { return false; } if ( !CvObjectUtils.areEqual( a1.getCvTopic(), a2.getCvTopic() ) ) { return false; } return true; }
public static boolean sameAlias( Alias a1, Alias a2 ) { if (a1.getAc() != null && a2.getAc() != null) { return a1.getAc().equals(a2.getAc()); } if ( !same( a1.getName(), a2.getName() ) ) { return false; } if ( !CvObjectUtils.areEqual( a1.getCvAliasType(), a2.getCvAliasType() ) ) { return false; } return true; }
public static boolean sameXref( Xref x1, Xref x2 ) { if (x1.getAc() != null && x2.getAc() != null) { return x1.getAc().equals(x2.getAc()); } if ( !same( x1.getPrimaryId(), x2.getPrimaryId() ) ) { return false; } if ( !CvObjectUtils.areEqual( x1.getCvDatabase(), x2.getCvDatabase() ) ) { return false; } if ( !CvObjectUtils.areEqual( x1.getCvXrefQualifier(), x2.getCvXrefQualifier() ) ) { return false; } if ( !same( x1.getSecondaryId(), x2.getSecondaryId() ) ) { return false; } if ( !same( x1.getDbRelease(), x2.getDbRelease() ) ) { return false; } return true; }
public static boolean sameAlias( Alias a1, Alias a2 ) { if (a1.getAc() != null && a2.getAc() != null) { return a1.getAc().equals(a2.getAc()); } if ( !same( a1.getName(), a2.getName() ) ) { return false; } if ( !CvObjectUtils.areEqual( a1.getCvAliasType(), a2.getCvAliasType() ) ) { return false; } return true; }