code: public double getNumericValue(Part part) {
          Part.Type type=part.type;
          if(type==Part.Type.ARG_INT) {
              return part.value;
          } else if(type==Part.Type.ARG_DOUBLE) {
              return numericValues.get(part.value);
          } else {
              return NO_NUMERIC_VALUE;
          }
      }
docs: Returns the numeric value associated with an ARG_INT or ARG_DOUBLE.
  @param part a part of this MessagePattern.
  @return the part's numeric value, or NO_NUMERIC_VALUE if this is not a numeric part.