|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.fleet.graph.properties.ParseUtil
public final class ParseUtil
Utility class for parsing strings.
| Method Summary | ||
|---|---|---|
static List<Double> |
degreeToRads(List<Double> degrees)
Converts a list of angles in degrees into a list of angles in radians. |
|
static
|
getCommaSeparatedString(List<T> values,
int decDigits)
Joins a list of values to a comma separated value string. |
|
static
|
parse(Class<T> type,
String value)
Parses the given string and creates an object of the specified type. |
|
static List<Double> |
parseCommaSeparatedString(String paramStr)
Parses a string of comma separated double values into a list of doubles. |
|
static List<Integer> |
parseCommaSeparatedStringAsIntegers(String paramStr)
Parses a string of comma separated integer values into a list of integers. |
|
static Double |
parseString(String value)
Parses a given string to a double. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T parse(Class<T> type,
String value)
T - The type.type - The type.value - The string.
public static List<Double> parseCommaSeparatedString(String paramStr)
paramStr - the comma separated value string
public static List<Integer> parseCommaSeparatedStringAsIntegers(String paramStr)
paramStr - the comma separated value string
public static <T extends Number> String getCommaSeparatedString(List<T> values,
int decDigits)
T - T extends Number, it can be an Integer, Double..values - the valuesdecDigits - the precision
public static List<Double> degreeToRads(List<Double> degrees)
degrees - the list of angles in degrees.
public static Double parseString(String value)
value - the string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||