public class Numbers extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ANYNUMBERLIKETHING |
static Pattern |
anyNumberLikeThingPat |
static Pattern |
commaPat |
static String |
DECIMAL |
static Pattern |
decimalPat |
static String |
FRACTION |
static String |
NEG_DECIMAL |
static Pattern |
negDecimalPat |
static String |
NUMBER |
static String |
ORDINAL |
static Pattern |
prefixUsdPat |
static Pattern |
removeScientificPat |
Constructor and Description |
---|
Numbers() |
Modifier and Type | Method and Description |
---|---|
static Quantity |
extractNumber(String phrase) |
static Quantity |
extractNumberFromTokenizedWords(List<String> tokens,
boolean returnUnits) |
static Quantity |
extractNumberFromWords(String phrase) |
static void |
initialize() |
static void |
main(String[] args) |
static Quantity |
postProcessing(Quantity quantity) |
static String |
prefixUsd(String phrase) |
static String |
preProcessing(String phrase) |
static String |
removeScientificNotation(String str) |
static String |
replaceCommas(String phrase) |
public static Pattern decimalPat
public static Pattern negDecimalPat
public static Pattern removeScientificPat
public static Pattern commaPat
public static Pattern anyNumberLikeThingPat
public static Pattern prefixUsdPat
public static String NUMBER
public static String FRACTION
public static String ORDINAL
public static String DECIMAL
public static String ANYNUMBERLIKETHING
public static String NEG_DECIMAL
Copyright © 2017. All rights reserved.