Example #1
0
 @Transient
 @Field(index = Index.UN_TOKENIZED, store = Store.NO)
 public String getMass() {
   try {
     PeptideProperties pp = calculateStats();
     if (pp.isHasMass()) {
       long mass = Math.round(pp.getMassInDaltons());
       return String.format("%09d", mass);
     }
     return "";
   } catch (RuntimeException exp) {
     return "";
   }
 }