Tabnine Logo
Checksum
Code IndexAdd Tabnine to your IDE (free)

How to use
Checksum
in
psidev.psi.mi.jami.model

Best Java code snippets using psidev.psi.mi.jami.model.Checksum (Showing top 13 results out of 315)

origin: psidev.psi.mi.jami/jami-core

public String getRigid() {
  return this.rigid != null ? this.rigid.getValue() : null;
}
origin: psidev.psi.mi.jami/jami-core

CvTerm method1 = checksum1.getMethod();
CvTerm method2 = checksum2.getMethod();
String checksum1Value = checksum1.getValue();
String checksum2Value = checksum2.getValue();
origin: psidev.psi.mi.jami/jami-core

/**
 * To check if a checksum does have a specific method
 * @param checksum the checksum
 * @param methodId the checksum MI identifier
 * @param methodName the checksum method name
 * @return true if the checksum has the method with given name/identifier
 */
public static boolean doesChecksumHaveMethod(Checksum checksum, String methodId, String methodName){
  if (checksum == null || (methodName == null && methodId == null)){
    return false;
  }
  CvTerm method = checksum.getMethod();
  // we can compare identifiers
  if (methodId != null && method.getMIIdentifier() != null){
    // we have the same method id
    return method.getMIIdentifier().equals(methodId);
  }
  // we need to compare methodNames
  else if (methodName != null) {
    return methodName.equalsIgnoreCase(method.getShortName());
  }
  return false;
}
origin: psidev.psi.mi.jami/jami-core

CvTerm method1 = checksum1.getMethod();
CvTerm method2 = checksum2.getMethod();
String checksum1Value = checksum1.getValue();
String checksum2Value = checksum2.getValue();
origin: psidev.psi.mi.jami/jami-core

  /**
   *
   * @param checksum
   * @return the hashcode consistent with the equals method for this comparator
   */
  public static int hashCode(Checksum checksum){
    if (unambiguousChecksumComparator == null){
      unambiguousChecksumComparator = new UnambiguousChecksumComparator();
    }

    if (checksum == null){
      return 0;
    }

    int hashcode = 31;
    CvTerm method = checksum.getMethod();
    hashcode = 31*hashcode + UnambiguousCvTermComparator.hashCode(method);

    String value = checksum.getValue();
    hashcode = 31*hashcode + value.hashCode();

    return hashcode;
  }
}
origin: psidev.psi.mi.jami/jami-core

public String getStandardInchi() {
  return standardInchi != null ? standardInchi.getValue() : null;
}
origin: psidev.psi.mi.jami/jami-mitab

public void writeChecksum(Checksum checksum) throws IOException {
  if (checksum != null){
    // first method
    escapeAndWriteString(checksum.getMethod().getShortName());
    getWriter().write(MitabUtils.XREF_SEPARATOR);
    // then value
    escapeAndWriteString(checksum.getValue());
  }
}
origin: psidev.psi.mi.jami/jami-core

public String getSmile() {
  return smile != null ? smile.getValue() : null;
}
origin: psidev.psi.mi.jami/jami-core

CvTerm method = checksum.getMethod();
    return checksum.getValue().equals(value);
    return checksum.getValue().equals(value);
origin: psidev.psi.mi.jami/jami-core

public String getRogid() {
  return this.rogid != null ? this.rogid.getValue() : null;
}
origin: psidev.psi.mi/psimi-schema-validator

final OntologyAccess access = ontologyManager.getOntologyAccess("MI");
CvTerm method = checksum.getMethod();
if (checksum.getValue() == null ||
    checksum.getValue().trim().length() == 0 ||
    PsiXmlUtils.UNSPECIFIED.equals(checksum.getValue()) ||
    MitabUtils.UNKNOWN_ID.equals(checksum.getValue())){
  MiContext xrefContext = RuleUtils.buildContext(checksum, "checksum");
  if (messages.isEmpty()){
origin: psidev.psi.mi.jami/jami-core

public String getStandardInchiKey() {
  return standardInchiKey != null ? standardInchiKey.getValue() : null;
}
origin: psidev.psi.mi.jami/jami-core

public String getRigid() {
  return this.rigid != null ? this.rigid.getValue() : null;
}
psidev.psi.mi.jami.modelChecksum

Javadoc

Checksum is a value for checking consistency of the data and can also be used for identifying objects. Ex: ROGID, CROGID, RIGID, CRC64, ...

Most used methods

  • getMethod
    The method is a controlled vocabulary term and cannot be null Ex: ROGID, CROGID, RIGID, CRC64, ...
  • getValue
    The checksum cannot be null. Ex: ROGID = UcdngwpTSS6hG/pvQGgpp40u67I9606|crogid:UcdngwpTSS6hG/pvQGgp

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BoxLayout (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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