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 ; } }
Returns the numeric value associated with an ARG_INT or ARG_DOUBLE .