public static MetricValue fromNumberValue(Number number){
  if (number == null) {
    return EMPTY;
  }
 else   if (number instanceof Float || number instanceof Double) {
    return fromDblValue(number.doubleValue());
  }
 else   if (number instanceof Byte || number instanceof Short || number instanceof Integer|| number instanceof Long) {
    return fromIntValue(number.longValue());
  }
 else {
    throw new IllegalArgumentException("Unrecognized number type: " + number.getClass());
  }
}

public static MetricValue fromNumberValue ( Number number ) { if ( number == null ) { return EMPTY ; } else if ( number instanceof Float || number instanceof Double ) { return fromDblValue ( number . doubleValue ( ) ) ; } else if ( number instanceof Byte || number instanceof Short || number instanceof Integer || number instanceof Long ) { return fromIntValue ( number . longValue ( ) ) ; } else { throw new IllegalArgumentException ( "Unrecognized number type: " + number . getClass ( ) ) ; } }
construct a metric value from a number implementation .
