code: public boolean isLessThan(Precedence p) {
          if (this.precedence < p.precedence
                  || (this.precedence == p.precedence && this.fragmentId > p.fragmentId)) return true;
          return false;
      }
docs: Returns true of this complete precedence is less than the complete precedence of the passed
  in Precedence object. The complete precedence takes into account the Id of the fragment
  definition (so that no two fragments may have exactly the same precedence). If the
  "precedence" value is equal then the precedence object with the lowest fragmentId has the
  higher complete precedence.