类 TypeUtils


  • public class TypeUtils
    extends Object
    Ported from Tablesaw
    • 字段详细资料

      • TRUE_STRINGS

        public static final List<String> TRUE_STRINGS
      • TRUE_STRINGS_FOR_DETECTION

        public static final List<String> TRUE_STRINGS_FOR_DETECTION
      • FALSE_STRINGS

        public static final List<String> FALSE_STRINGS
      • FALSE_STRINGS_FOR_DETECTION

        public static final List<String> FALSE_STRINGS_FOR_DETECTION
      • TIME_DETECTION_FORMATTER

        public static final DateTimeFormatter TIME_DETECTION_FORMATTER
      • MISSING_INDICATORS

        public static final com.google.common.collect.ImmutableList<String> MISSING_INDICATORS
    • 方法详细资料

      • getDateFormatter

        public static DateTimeFormatter getDateFormatter​(String dateValue)
        Returns the first DateTimeFormatter to parse the string, which represents a DATE

        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.

      • getDateTimeFormatter

        public static DateTimeFormatter getDateTimeFormatter​(String dateTimeValue)
        Returns the first DateTimeFormatter to parse the string, which represents a DATE_TIME

        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.

      • getTimeFormatter

        public static DateTimeFormatter getTimeFormatter​(String timeValue)
        Returns the first DateTimeFormatter to parse the string, which represents a TIME

        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.