code: public boolean greaterThan(long val) {
          if (isInfinity && posOrNeg) {
              return true;
          } else if (isInfinity && !posOrNeg) {
              return false;
          } else {
              return this.val > val;
          }
      }
docs: Checks to see if this weight is greater than the given long value.
  
  @param val
  a long value.
  @return true if this weight is greater than the given long value, false
  otherwise.