public class TypeUtils extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static org.joda.time.format.DateTimeFormatter |
DATE_FORMATTER |
|
static org.joda.time.format.DateTimeFormatter |
DATE_TIME_FORMATTER |
|
static List<String> |
FALSE_STRINGS |
|
static List<String> |
FALSE_STRINGS_FOR_DETECTION |
|
static com.google.common.collect.ImmutableList<String> |
MISSING_INDICATORS |
|
static org.joda.time.format.DateTimeFormatter |
TIME_DETECTION_FORMATTER |
|
static org.joda.time.format.DateTimeFormatter |
TIME_FORMATTER |
|
static List<String> |
TRUE_STRINGS |
|
static List<String> |
TRUE_STRINGS_FOR_DETECTION |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static org.joda.time.format.DateTimeFormatter |
getDateFormatter(String dateValue) |
Returns the first DateTimeFormatter to parse the string, which represents a DATE
|
static org.joda.time.format.DateTimeFormatter |
getDateTimeFormatter(String dateTimeValue) |
Returns the first DateTimeFormatter to parse the string, which represents a DATE_TIME
|
static org.joda.time.format.DateTimeFormatter |
getTimeFormatter(String timeValue) |
Returns the first DateTimeFormatter to parse the string, which represents a TIME
|
public static final org.joda.time.format.DateTimeFormatter DATE_FORMATTER
public static final org.joda.time.format.DateTimeFormatter DATE_TIME_FORMATTER
public static final org.joda.time.format.DateTimeFormatter TIME_DETECTION_FORMATTER
public static final org.joda.time.format.DateTimeFormatter TIME_FORMATTER
public static final com.google.common.collect.ImmutableList<String> MISSING_INDICATORS
public static org.joda.time.format.DateTimeFormatter getDateFormatter(String dateValue)
It's intended to be called at the start of a large formatting job so that it picks the write format and is not called again. This is an optimization, because the older version, which will try multiple formatters was too slow for large data sets.
public static org.joda.time.format.DateTimeFormatter getDateTimeFormatter(String dateTimeValue)
It's intended to be called at the start of a large formatting job so that it picks the write format and is not called again. This is an optimization, because the older version, which will try multiple formatters was too slow for large data sets.
public static org.joda.time.format.DateTimeFormatter getTimeFormatter(String timeValue)
It's intended to be called at the start of a large formatting job so that it picks the write format and is not called again. This is an optimization, because the older version, which will try multiple formatters was too slow for large data sets.
Copyright © 2019. All rights reserved.