public class PathTypeConversion extends Object
| Constructor and Description |
|---|
PathTypeConversion() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
asBool(String value)
Convert to boolean.
|
static LocalDate |
asDate(String value)
Convert to LocalDate (not nullable).
|
static LocalDateTime |
asDateTime(String value)
Convert to LocalDateTime (not nullable).
|
static BigDecimal |
asDecimal(String value)
Convert to BigDecimal (not nullable).
|
static double |
asDouble(String value)
Convert to double.
|
static float |
asFloat(String value)
Convert to float.
|
static int |
asInt(String value)
Convert to int.
|
static Integer |
asInteger(String value)
Convert to Integer (not nullable).
|
static long |
asLong(String value)
Convert to long.
|
static LocalTime |
asTime(String value)
Convert to LocalTime (not nullable).
|
static UUID |
asUUID(String value)
Convert to UUID (not nullable).
|
static Boolean |
toBoolean(String value)
Convert to Boolean (allowing nulls).
|
static LocalDateTime |
toDateTime(String value)
Convert to LocalDateTime (allowing nulls).
|
static Integer |
toInteger(String value)
Convert to Integer (allowing nulls).
|
static LocalDate |
toLocalDate(String value)
Convert to LocalDate (allowing nulls).
|
static Long |
toLong(String value)
Convert to Long (allowing nulls).
|
static LocalTime |
toTime(String value)
Convert to LocalTime (allowing nulls).
|
static UUID |
toUUID(String value)
Convert to UUID (allowing nulls).
|
public PathTypeConversion()
public static BigDecimal asDecimal(String value)
public static LocalDateTime asDateTime(String value)
public static LocalDate toLocalDate(String value)
public static LocalDateTime toDateTime(String value)
Copyright © 2018. All rights reserved.