public final class DfTypeUtil extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
DfTypeUtil.ParseBooleanException |
static class |
DfTypeUtil.ParseCalendarException |
static class |
DfTypeUtil.ParseCalendarNumberFormatException |
static class |
DfTypeUtil.ParseCalendarOutOfCalendarException |
static class |
DfTypeUtil.ParseDateException |
static class |
DfTypeUtil.ParseDateNumberFormatException |
static class |
DfTypeUtil.ParseDateOutOfCalendarException |
static class |
DfTypeUtil.ParseSqlDateException |
static class |
DfTypeUtil.ParseSqlDateNumberFormatException |
static class |
DfTypeUtil.ParseSqlDateOutOfCalendarException |
static class |
DfTypeUtil.ParseTimeException |
static class |
DfTypeUtil.ParseTimeNumberFormatException |
static class |
DfTypeUtil.ParseTimeOutOfCalendarException |
static class |
DfTypeUtil.ParseTimestampException |
static class |
DfTypeUtil.ParseTimestampNumberFormatException |
static class |
DfTypeUtil.ParseTimestampOutOfCalendarException |
static class |
DfTypeUtil.ParseUUIDException |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
COLONED_TIME_PATTERN |
static String |
DEFAULT_DATE_PATTERN |
static String |
DEFAULT_TIME_PATTERN |
static String |
DEFAULT_TIMESTAMP_PATTERN |
protected static String[] |
EMPTY_STRINGS |
protected static long |
GMT_AD_ORIGIN_MILLISECOND |
static String |
HYPHENED_DATE_PATTERN |
static String |
HYPHENED_TIMESTAMP_PATTERN |
protected static String |
NULL |
static String |
PLAIN_MILLIS_PATTERN |
static String |
SLASHED_DATE_PATTERN |
static String |
SLASHED_TIMESTAMP_PATTERN |
protected static Map<Locale,DecimalFormatSymbols> |
symbolsCache |
| コンストラクタと説明 |
|---|
DfTypeUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
addCalendarDay(Calendar cal,
int days) |
static void |
addCalendarHour(Calendar cal,
int hours) |
static void |
addCalendarMillisecond(Calendar cal,
int milliseconds) |
static void |
addCalendarMinute(Calendar cal,
int minutes) |
static void |
addCalendarMonth(Calendar cal,
int months) |
static void |
addCalendarQuarterOfYear(Calendar cal,
int quartersOfYear) |
static void |
addCalendarSecond(Calendar cal,
int seconds) |
static void |
addCalendarWeek(Calendar cal,
int weeks) |
static void |
addCalendarYear(Calendar cal,
int years) |
protected static void |
addDateDay(Date date,
int days) |
protected static void |
addDateHour(Date date,
int hours) |
protected static void |
addDateMillisecond(Date date,
int milliseconds) |
protected static void |
addDateMinute(Date date,
int minutes) |
protected static void |
addDateMonth(Date date,
int months) |
protected static void |
addDateSecond(Date date,
int seconds) |
protected static void |
addDateWeekOfMonth(Date date,
int weeksOfMonth) |
protected static void |
addDateYear(Date date,
int years) |
protected static void |
assertArgumentNotMinusInteger(String name,
int value) |
protected static void |
assertArgumentNotMinusNotZeroInteger(String name,
int value) |
protected static void |
assertArgumentNotZeroInteger(String name,
int value) |
protected static void |
assertLocaleNotNull(String methodName,
Locale locale) |
protected static void |
assertPatternNotNull(String methodName,
String pattern) |
protected static void |
assertTimeZoneNotNull(String methodName,
TimeZone timeZone) |
protected static Locale |
chooseRealLocale(Locale locale) |
protected static TimeZone |
chooseRealZone(TimeZone timeZone) |
static void |
clearCalendarMillisecond(Calendar cal) |
static void |
clearCalendarMinuteWithRear(Calendar cal) |
static void |
clearCalendarSecondWithRear(Calendar cal) |
static void |
clearCalendarTimeParts(Calendar cal) |
protected static void |
clearDateMillisecond(Date date) |
protected static void |
clearDateMinuteWithRear(Date date) |
protected static void |
clearDateSecondWithRear(Date date) |
protected static void |
clearDateTimeParts(Date date) |
static DateFormat |
createDateFormat(String pattern) |
static DateFormat |
createDateFormat(TimeZone timeZone,
String pattern,
Locale locale,
boolean strict) |
static DecimalFormat |
createDecimalFormat(String pattern) |
static byte[] |
decodeAsBase64(String inData) |
protected static String |
doConvertMillisToNanosString(String millis) |
protected static BigDecimal |
doConvertToBigDecimal(Object obj,
String pattern) |
protected static BigInteger |
doConvertToBigInteger(Object obj,
String pattern) |
protected static Byte |
doConvertToByte(Object obj,
String pattern) |
protected static Calendar |
doConvertToCalendar(Object obj,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static Date |
doConvertToDate(Object obj,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static Double |
doConvertToDouble(Object obj,
String pattern) |
protected static Float |
doConvertToFloat(Object obj,
String pattern) |
protected static Integer |
doConvertToInteger(Object obj,
String pattern) |
protected static LocalDate |
doConvertToLocalDate(Object obj,
String pattern,
TimeZone timeZone) |
protected static LocalDateTime |
doConvertToLocalDateTime(Object obj,
String pattern,
TimeZone timeZone) |
protected static LocalTime |
doConvertToLocalTime(Object obj,
String pattern,
TimeZone timeZone) |
protected static Long |
doConvertToLong(Object obj,
String pattern) |
protected static byte |
doConvertToPrimitiveByte(Object obj,
String pattern) |
protected static double |
doConvertToPrimitiveDouble(Object obj,
String pattern) |
protected static float |
doConvertToPrimitiveFloat(Object obj,
String pattern) |
protected static int |
doConvertToPrimitiveInt(Object obj,
String pattern) |
protected static long |
doConvertToPrimitiveLong(Object obj,
String pattern) |
protected static short |
doConvertToPrimitiveShort(Object obj,
String pattern) |
protected static Short |
doConvertToShort(Object obj,
String pattern) |
protected static Date |
doConvertToSqlDate(Object obj,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static String |
doConvertToString(Object obj,
String pattern) |
protected static String |
doConvertToStringDate(Date value,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static String |
doConvertToStringLocalDate(LocalDate value,
String pattern) |
protected static String |
doConvertToStringLocalDateTime(LocalDateTime value,
String pattern) |
protected static String |
doConvertToStringLocalTime(LocalTime value,
String pattern) |
protected static String |
doConvertToStringNumber(Number value,
String pattern) |
protected static Time |
doConvertToTime(Object obj,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static Timestamp |
doConvertToTimestamp(Object obj,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static DateFormat |
doCreateDateFormat(String pattern,
TimeZone timeZone,
Locale locale,
boolean strict) |
protected static boolean |
doJudgeDateAD(Date date,
TimeZone timeZone) |
protected static boolean |
doJudgeDateBC(Date date,
TimeZone timeZone) |
protected static Date |
doParseLocalDateAsDate(LocalDate localDate,
TimeZone timeZone) |
protected static Timestamp |
doParseLocalDateAsTimestamp(LocalDate localDate,
TimeZone timeZone) |
protected static Date |
doParseLocalDateTimeAsDate(LocalDateTime localDateTime,
TimeZone timeZone) |
protected static Timestamp |
doParseLocalDateTimeAsTimestamp(LocalDateTime localDateTime,
TimeZone timeZone) |
protected static Date |
doParseStringAsDate(String str,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static Double |
doParseStringAsDouble(String str) |
protected static Float |
doParseStringAsFloat(String str) |
protected static Integer |
doParseStringAsInteger(String str) |
protected static LocalDate |
doParseStringAsLocalDate(String str,
String pattern) |
protected static LocalDateTime |
doParseStringAsLocalDateTime(String str,
String pattern) |
protected static LocalTime |
doParseStringAsLocalTime(String str,
String pattern) |
protected static Long |
doParseStringAsLong(String str) |
protected static Time |
doParseStringAsTime(String str,
TimeZone timeZone,
String pattern,
Locale locale) |
protected static Timestamp |
doParseStringAsTimestamp(String str,
TimeZone timeZone,
String pattern,
Locale locale) |
static String |
encodeAsBase64(byte[] inData) |
protected static String |
filterDateStringValueFlexibly(String pureStr,
boolean includeTime,
boolean includeMillis,
boolean keepMillisMore) |
protected static String |
filterTimestampStringValueFlexibly(String pureStr) |
protected static String |
filterTimeStringValueFlexibly(String pureStr,
boolean includeMillis,
boolean keepMillisMore) |
protected static Integer |
formatDateElementAsNumber(String str,
String title,
String pureValue) |
protected static DecimalFormatSymbols |
getDecimalFormatSymbols(Locale locale) |
protected static long |
getTimeZonedADOriginMillis(TimeZone timeZone) |
protected static String |
handleTimeZeroPrefix(String time,
String pureStr,
boolean includeMillis,
boolean keepMillisMore) |
static boolean |
isAnyLocalDate(Object obj)
Is the object local date or local date-time or local time?
|
static boolean |
isAnyLocalDateType(Class<?> type)
Is the type local date or local date-time or local time?
|
static boolean |
isDateAD(Date date) |
static boolean |
isDateAD(Date date,
TimeZone timeZone) |
static boolean |
isDateBC(Date date) |
static boolean |
isDateBC(Date date,
TimeZone timeZone) |
static boolean |
isLocalDateAD(LocalDate date) |
static boolean |
isLocalDateBC(LocalDate date) |
static boolean |
isLocalDateOrDateTime(Object obj)
Is the object local date or local date-time?
|
static boolean |
isLocalDateOrDateTimeType(Class<?> type)
Is the type local date or local date-time?
|
static Calendar |
localize(Calendar cal) |
static void |
moveToCalendarDay(Calendar cal,
int day) |
static void |
moveToCalendarDayJust(Calendar cal) |
static void |
moveToCalendarDayJust(Calendar cal,
int dayBeginHour) |
static void |
moveToCalendarDayJustAdded(Calendar cal,
int days) |
static void |
moveToCalendarDayJustFor(Calendar cal,
int day) |
static void |
moveToCalendarDayTerminal(Calendar cal) |
static void |
moveToCalendarDayTerminal(Calendar cal,
int dayBeginHour) |
static void |
moveToCalendarDayTerminalAdded(Calendar cal,
int days) |
static void |
moveToCalendarDayTerminalFor(Calendar cal,
int day) |
static void |
moveToCalendarHour(Calendar cal,
int hour) |
static void |
moveToCalendarHourJust(Calendar cal) |
static void |
moveToCalendarHourJustAdded(Calendar cal,
int hours) |
static void |
moveToCalendarHourJustFor(Calendar cal,
int hour) |
static void |
moveToCalendarHourJustNoon(Calendar cal) |
static void |
moveToCalendarHourTerminal(Calendar cal) |
static void |
moveToCalendarHourTerminalAdded(Calendar cal,
int hours) |
static void |
moveToCalendarHourTerminalFor(Calendar cal,
int hour) |
static void |
moveToCalendarMillisecond(Calendar cal,
int millisecond) |
static void |
moveToCalendarMinute(Calendar cal,
int minute) |
static void |
moveToCalendarMinuteJust(Calendar cal) |
static void |
moveToCalendarMinuteJustAdded(Calendar cal,
int minutes) |
static void |
moveToCalendarMinuteJustFor(Calendar cal,
int minute) |
static void |
moveToCalendarMinuteTerminal(Calendar cal) |
static void |
moveToCalendarMinuteTerminalAdded(Calendar cal,
int minutes) |
static void |
moveToCalendarMinuteTerminalFor(Calendar cal,
int minute) |
static void |
moveToCalendarMonth(Calendar cal,
int month) |
static void |
moveToCalendarMonthJust(Calendar cal) |
static void |
moveToCalendarMonthJust(Calendar cal,
int monthBeginDay) |
static void |
moveToCalendarMonthJustAdded(Calendar cal,
int months) |
static void |
moveToCalendarMonthJustFor(Calendar cal,
int month) |
static void |
moveToCalendarMonthTerminal(Calendar cal) |
static void |
moveToCalendarMonthTerminal(Calendar cal,
int monthBeginDay) |
static void |
moveToCalendarMonthTerminalAdded(Calendar cal,
int months) |
static void |
moveToCalendarMonthTerminalFor(Calendar cal,
int month) |
static void |
moveToCalendarQuarterOfYearJust(Calendar cal) |
static void |
moveToCalendarQuarterOfYearJust(Calendar cal,
int yearBeginMonth) |
static void |
moveToCalendarQuarterOfYearJustAdded(Calendar cal,
int quartersOfYear) |
static void |
moveToCalendarQuarterOfYearJustAdded(Calendar cal,
int quartersOfYear,
int yearBeginMonth) |
static void |
moveToCalendarQuarterOfYearJustFor(Calendar cal,
int quarterOfYear) |
static void |
moveToCalendarQuarterOfYearJustFor(Calendar cal,
int quarterOfYear,
int yearBeginMonth) |
static void |
moveToCalendarQuarterOfYearTerminal(Calendar cal) |
static void |
moveToCalendarQuarterOfYearTerminal(Calendar cal,
int yearBeginMonth) |
static void |
moveToCalendarQuarterOfYearTerminalAdded(Calendar cal,
int quartersOfYear) |
static void |
moveToCalendarQuarterOfYearTerminalAdded(Calendar cal,
int quartersOfYear,
int yearBeginMonth) |
static void |
moveToCalendarQuarterOfYearTerminalFor(Calendar cal,
int quarterOfYear) |
static void |
moveToCalendarQuarterOfYearTerminalFor(Calendar cal,
int quarterOfYear,
int yearBeginMonth) |
static void |
moveToCalendarSecond(Calendar cal,
int second) |
static void |
moveToCalendarSecondJust(Calendar cal) |
static void |
moveToCalendarSecondJustAdded(Calendar cal,
int seconds) |
static void |
moveToCalendarSecondJustFor(Calendar cal,
int second) |
static void |
moveToCalendarSecondTerminal(Calendar cal) |
static void |
moveToCalendarSecondTerminalAdded(Calendar cal,
int seconds) |
static void |
moveToCalendarSecondTerminalFor(Calendar cal,
int second) |
static void |
moveToCalendarWeekJust(Calendar cal) |
static void |
moveToCalendarWeekJust(Calendar cal,
int weekBeginDayOfWeek) |
static void |
moveToCalendarWeekOfMonth(Calendar cal,
int weekOfMonth) |
static void |
moveToCalendarWeekOfYear(Calendar cal,
int weekOfYear) |
static void |
moveToCalendarWeekTerminal(Calendar cal) |
static void |
moveToCalendarWeekTerminal(Calendar cal,
int weekBeginDayOfWeek) |
static void |
moveToCalendarYear(Calendar cal,
int year) |
static void |
moveToCalendarYearJust(Calendar cal) |
static void |
moveToCalendarYearJust(Calendar cal,
int yearBeginMonth) |
static void |
moveToCalendarYearJustAdded(Calendar cal,
int years) |
static void |
moveToCalendarYearJustFor(Calendar cal,
int year) |
static void |
moveToCalendarYearTerminal(Calendar cal) |
static void |
moveToCalendarYearTerminal(Calendar cal,
int yearBeginMonth) |
static void |
moveToCalendarYearTerminalAdded(Calendar cal,
int years) |
static void |
moveToCalendarYearTerminalFor(Calendar cal,
int year) |
protected static void |
moveToDateDay(Date date,
int day) |
protected static void |
moveToDateDayJust(Date date) |
protected static void |
moveToDateDayJust(Date date,
int dayBeginHour) |
protected static void |
moveToDateDayJustAdded(Date date,
int day) |
protected static void |
moveToDateDayJustFor(Date date,
int day) |
protected static void |
moveToDateDayTerminal(Date date) |
protected static void |
moveToDateDayTerminal(Date date,
int dayBeginHour) |
protected static void |
moveToDateDayTerminalAdded(Date date,
int day) |
protected static void |
moveToDateDayTerminalFor(Date date,
int day) |
protected static void |
moveToDateHour(Date date,
int hour) |
protected static void |
moveToDateHourJust(Date date) |
protected static void |
moveToDateHourJustAdded(Date date,
int hour) |
protected static void |
moveToDateHourJustFor(Date date,
int hour) |
protected static void |
moveToDateHourJustNoon(Date date) |
protected static void |
moveToDateHourTerminal(Date date) |
protected static void |
moveToDateHourTerminalAdded(Date date,
int hour) |
protected static void |
moveToDateHourTerminalFor(Date date,
int hour) |
protected static void |
moveToDateMinute(Date date,
int minute) |
protected static void |
moveToDateMinuteJust(Date date) |
protected static void |
moveToDateMinuteJustAdded(Date date,
int minute) |
protected static void |
moveToDateMinuteJustFor(Date date,
int minute) |
protected static void |
moveToDateMinuteTerminal(Date date) |
protected static void |
moveToDateMinuteTerminalAdded(Date date,
int minute) |
protected static void |
moveToDateMinuteTerminalFor(Date date,
int minute) |
protected static void |
moveToDateMonth(Date date,
int month) |
protected static void |
moveToDateMonthAdded(Date date,
int month) |
protected static void |
moveToDateMonthFor(Date date,
int month) |
protected static void |
moveToDateMonthJust(Date date) |
protected static void |
moveToDateMonthJust(Date date,
int monthBeginDay) |
protected static void |
moveToDateMonthTerminal(Date date) |
protected static void |
moveToDateMonthTerminal(Date date,
int monthBeginDay) |
protected static void |
moveToDateMonthTerminalAdded(Date date,
int month) |
protected static void |
moveToDateMonthTerminalFor(Date date,
int month) |
protected static void |
moveToDateQuarterOfYearJust(Date date) |
protected static void |
moveToDateQuarterOfYearJust(Date date,
int yearBeginMonth) |
protected static void |
moveToDateQuarterOfYearJustFor(Date date,
int quarterOfYear) |
protected static void |
moveToDateQuarterOfYearJustFor(Date date,
int quarterOfYear,
int yearBeginMonth) |
protected static void |
moveToDateQuarterOfYearTerminal(Date date) |
protected static void |
moveToDateQuarterOfYearTerminal(Date date,
int yearBeginMonth) |
protected static void |
moveToDateQuarterOfYearTerminalFor(Date date,
int quarterOfYear) |
protected static void |
moveToDateQuarterOfYearTerminalFor(Date date,
int quarterOfYear,
int yearBeginMonth) |
protected static void |
moveToDateSecond(Date date,
int second) |
protected static void |
moveToDateSecondJust(Date date) |
protected static void |
moveToDateSecondJustAdded(Date date,
int second) |
protected static void |
moveToDateSecondJustFor(Date date,
int second) |
protected static void |
moveToDateSecondTerminal(Date date) |
protected static void |
moveToDateSecondTerminalAdded(Date date,
int second) |
protected static void |
moveToDateSecondTerminalFor(Date date,
int second) |
protected static void |
moveToDateWeekJust(Date date,
int weekStartDay) |
protected static void |
moveToDateWeekTerminal(Date date,
int weekStartDay) |
protected static void |
moveToDateYear(Date date,
int year) |
protected static void |
moveToDateYearJust(Date date) |
protected static void |
moveToDateYearJust(Date date,
int yearBeginMonth) |
protected static void |
moveToDateYearJustAdded(Date date,
int year) |
protected static void |
moveToDateYearJustFor(Date date,
int year) |
protected static void |
moveToDateYearTerminal(Date date) |
protected static void |
moveToDateYearTerminal(Date date,
int yearBeginMonth) |
protected static void |
moveToDateYearTerminalAdded(Date date,
int year) |
protected static void |
moveToDateYearTerminalFor(Date date,
int year) |
protected static String |
normalize(String value) |
protected static String |
normalize(String value,
Locale locale) |
protected static String |
replace(String text,
String from,
String to) |
protected static String |
resolveDateElementZeroPrefix(String str,
int count) |
protected static String |
resolveDateElementZeroSuffix(String str,
int count) |
protected static String[] |
split(String str,
String delimiter) |
static BigDecimal |
toBigDecimal(Object obj) |
static BigDecimal |
toBigDecimal(Object obj,
String pattern) |
static BigInteger |
toBigInteger(Object obj) |
static BigInteger |
toBigInteger(Object obj,
String pattern) |
static byte[] |
toBinary(Serializable obj) |
static Boolean |
toBoolean(Object obj) |
static Byte |
toByte(Object obj) |
static Byte |
toByte(Object obj,
String pattern) |
protected static Byte |
toByte(String str) |
static byte[] |
toBytes(String str,
String encoding) |
static Calendar |
toCalendar(Object obj) |
static Calendar |
toCalendar(Object obj,
String pattern) |
static Calendar |
toCalendar(Object obj,
String pattern,
Locale locale) |
static Calendar |
toCalendar(Object obj,
TimeZone timeZone) |
static Calendar |
toCalendar(Object obj,
TimeZone timeZone,
String pattern,
Locale locale) |
static String |
toClassTitle(Object obj)
Convert the object to class title name.
|
static Date |
toDate(Object obj)
Convert the object to the instance that is date for the default time-zone.
|
static Date |
toDate(Object obj,
String pattern)
Convert the object to the instance that is date.
|
static Date |
toDate(Object obj,
String pattern,
Locale locale)
Convert the object to the instance that is date.
|
static Date |
toDate(Object obj,
TimeZone timeZone)
Convert the object to the instance that is date for the specified time-zone.
|
static Date |
toDate(Object obj,
TimeZone timeZone,
String pattern,
Locale locale)
Convert the object to the instance that is date.
|
static Double |
toDouble(Object obj) |
static Double |
toDouble(Object obj,
String pattern) |
static Float |
toFloat(Object obj) |
static Float |
toFloat(Object obj,
String pattern) |
static Integer |
toInteger(Object obj) |
static Integer |
toInteger(Object obj,
String pattern) |
static LocalDate |
toLocalDate(Object obj)
Convert the object to the instance that is date for the default time-zone.
|
static LocalDate |
toLocalDate(Object obj,
String pattern)
Convert the object to the instance that is date for the default time-zone.
|
static LocalDate |
toLocalDate(Object obj,
String pattern,
TimeZone timeZone)
Convert the object to the instance that is date for the specified time-zone.
|
static LocalDate |
toLocalDate(Object obj,
TimeZone timeZone)
Convert the object to the instance that is date for the specified time-zone.
|
static LocalDateTime |
toLocalDateTime(Object obj)
Convert the object to the instance that is date-time for the default time-zone.
|
static LocalDateTime |
toLocalDateTime(Object obj,
String pattern)
Convert the object to the instance that is date-time for the default time-zone.
|
static LocalDateTime |
toLocalDateTime(Object obj,
String pattern,
TimeZone timeZone)
Convert the object to the instance that is date-time for the specified time-zone.
|
static LocalDateTime |
toLocalDateTime(Object obj,
TimeZone timeZone)
Convert the object to the instance that is date-time for the specified time-zone.
|
static LocalTime |
toLocalTime(Object obj)
Convert the object to the instance that is time for the default time-zone.
|
static LocalTime |
toLocalTime(Object obj,
String pattern)
Convert the object to the instance that is date-time for the default time-zone.
|
static LocalTime |
toLocalTime(Object obj,
String pattern,
TimeZone timeZone)
Convert the object to the instance that is date-time for the specified time-zone.
|
static LocalTime |
toLocalTime(Object obj,
TimeZone timeZone)
Convert the object to the instance that is time for the specified time-zone.
|
static Long |
toLong(Object obj) |
static Long |
toLong(Object obj,
String pattern) |
static Number |
toNumber(Object obj,
Class<?> type)
Convert to number object.
|
static <DATE> DATE |
toPointDate(Object obj,
Class<DATE> type)
Convert to point date object.
|
static boolean |
toPrimitiveBoolean(Object obj) |
static byte |
toPrimitiveByte(Object obj) |
static byte |
toPrimitiveByte(Object obj,
String pattern) |
static double |
toPrimitiveDouble(Object obj) |
static double |
toPrimitiveDouble(Object obj,
String pattern) |
static float |
toPrimitiveFloat(Object obj) |
static float |
toPrimitiveFloat(Object obj,
String pattern) |
static int |
toPrimitiveInt(Object obj) |
static int |
toPrimitiveInt(Object obj,
String pattern) |
static long |
toPrimitiveLong(Object obj) |
static long |
toPrimitiveLong(Object obj,
String pattern) |
static short |
toPrimitiveShort(Object obj) |
static short |
toPrimitiveShort(Object obj,
String pattern) |
static <SER extends Serializable> |
toSerializable(byte[] bytes) |
static Short |
toShort(Object obj) |
static Short |
toShort(Object obj,
String pattern) |
protected static Short |
toShort(String str) |
static Date |
toSqlDate(Object obj)
Convert the object to the instance that is SQL-date.
|
static Date |
toSqlDate(Object obj,
String pattern)
Convert the object to the instance that is SQL-date cleared seconds.
|
static Date |
toSqlDate(Object obj,
String pattern,
Locale locale)
Convert the object to the instance that is SQL-date cleared seconds.
|
static Date |
toSqlDate(Object obj,
TimeZone timeZone)
Convert the object to the instance that is SQL-date.
|
static Date |
toSqlDate(Object obj,
TimeZone timeZone,
String pattern,
Locale locale)
Convert the object to the instance that is SQL-date cleared seconds.
|
static String |
toString(Object obj)
Convert the object to the instance that is string.
|
static String |
toString(Object obj,
String pattern)
Convert the object to the instance that is string by the pattern.
|
static String |
toStringDate(Date value,
TimeZone timeZone,
String pattern,
Locale locale) |
static String |
toStringDate(LocalDate date,
String pattern)
Convert the local date to the instance that is string by the pattern.
|
static String |
toStringDate(LocalDateTime date,
String pattern)
Convert the local date-time to the instance that is string by the pattern.
|
static String |
toStringDate(LocalTime date,
String pattern)
Convert the local time to the instance that is string by the pattern.
|
static String |
toStringNumber(Number number,
String pattern)
Convert the number to the instance that is string by the pattern.
|
static String |
toStringStackTrace(Throwable cause) |
static Time |
toTime(Object obj)
Convert the object to the instance that is time.
|
static Time |
toTime(Object obj,
String pattern)
Convert the object to the instance that is time.
|
static Time |
toTime(Object obj,
String pattern,
Locale locale)
Convert the object to the instance that is time.
|
static Time |
toTime(Object obj,
TimeZone timeZone)
Convert the object to the instance that is time.
|
static Time |
toTime(Object obj,
TimeZone timeZone,
String pattern,
Locale locale)
Convert the object to the instance that is time.
|
static Timestamp |
toTimestamp(Object obj)
Convert the object to the instance that is time-stamp.
|
static Timestamp |
toTimestamp(Object obj,
String pattern)
Convert the object to the instance that is time-stamp.
|
static Timestamp |
toTimestamp(Object obj,
String pattern,
Locale locale)
Convert the object to the instance that is time-stamp.
|
static Timestamp |
toTimestamp(Object obj,
TimeZone timeZone)
Convert the object to the instance that is time-stamp.
|
static Timestamp |
toTimestamp(Object obj,
TimeZone timeZone,
String pattern,
Locale locale)
Convert the object to the instance that is time-stamp.
|
static UUID |
toUUID(Object obj) |
protected static UUID |
toUUIDFromString(String str) |
static Object |
toWrapper(Object obj,
Class<?> type) |
protected static ZonedDateTime |
toZonedDateTime(Object obj,
TimeZone timeZone) |
protected static Date |
toZonedResourceDate(Object obj,
TimeZone timeZone) |
public static final String HYPHENED_TIMESTAMP_PATTERN
public static final String SLASHED_TIMESTAMP_PATTERN
public static final String DEFAULT_TIMESTAMP_PATTERN
protected static final String[] EMPTY_STRINGS
protected static final long GMT_AD_ORIGIN_MILLISECOND
protected static Map<Locale,DecimalFormatSymbols> symbolsCache
public static String toString(Object obj)
e.g. date :: use the default time-zone. byte array :: encode as base64. exception :: convert to stack-trace.
obj - The parsed object. (NullAllowed: if null, returns null)public static String toString(Object obj, String pattern)
e.g. date :: use the default time-zone. byte array :: encode as base64. exception :: convert to stack-trace.
obj - The parsed object. (NullAllowed: if null, returns null)pattern - The pattern format to parse for e.g. number, date. (NotNull)public static String toStringNumber(Number number, String pattern)
number - The parsed number to be string. (NullAllowed: if null, returns null)pattern - The pattern format to parse as number. (NotNull)protected static String doConvertToStringNumber(Number value, String pattern)
public static String toStringDate(LocalDate date, String pattern)
date - The parsed local date to be string. (NullAllowed: if null, returns null)pattern - The pattern format to parse as local date. (NotNull)protected static String doConvertToStringLocalDate(LocalDate value, String pattern)
public static String toStringDate(LocalDateTime date, String pattern)
date - The parsed local date-time to be string. (NullAllowed: if null, returns null)pattern - The pattern format to parse as local date-time. (NotNull)protected static String doConvertToStringLocalDateTime(LocalDateTime value, String pattern)
public static String toStringDate(LocalTime date, String pattern)
date - The parsed local time to be string. (NullAllowed: if null, returns null)pattern - The pattern format to parse as local time. (NotNull)protected static String doConvertToStringLocalTime(LocalTime value, String pattern)
public static String toStringDate(Date value, TimeZone timeZone, String pattern, Locale locale)
protected static String doConvertToStringDate(Date value, TimeZone timeZone, String pattern, Locale locale)
public static String toClassTitle(Object obj)
o com.example.Foo to Foo o com.example.Foo$Bar to Foo$Bar o com.example.Foo$1 to Foo$1 o Foo to Foo o Foo$Bar to Foo$BarIf the object is Class, it uses Class.getName() as convert target string.
obj - The target object. String or Class are treated as special. (NullAllowed: if null, returns null)public static String encodeAsBase64(byte[] inData)
public static byte[] decodeAsBase64(String inData)
public static Number toNumber(Object obj, Class<?> type)
obj - The resource of number. (NullAllowed: if null, returns null)type - The type of number. (NotNull)public static DecimalFormat createDecimalFormat(String pattern)
public static Integer toInteger(Object obj)
obj - The resource value to integer. (NullAllowed)NumberFormatException - When the object cannot be parsed.public static int toPrimitiveInt(Object obj)
public static Long toLong(Object obj)
obj - The resource value to long. (NullAllowed)NumberFormatException - When the object cannot be parsed.public static long toPrimitiveLong(Object obj)
public static double toPrimitiveDouble(Object obj)
protected static double doConvertToPrimitiveDouble(Object obj, String pattern)
public static float toPrimitiveFloat(Object obj)
protected static float doConvertToPrimitiveFloat(Object obj, String pattern)
public static short toPrimitiveShort(Object obj)
protected static short doConvertToPrimitiveShort(Object obj, String pattern)
public static byte toPrimitiveByte(Object obj)
public static BigDecimal toBigDecimal(Object obj)
public static BigDecimal toBigDecimal(Object obj, String pattern)
protected static BigDecimal doConvertToBigDecimal(Object obj, String pattern)
public static BigInteger toBigInteger(Object obj)
public static BigInteger toBigInteger(Object obj, String pattern)
protected static BigInteger doConvertToBigInteger(Object obj, String pattern)
public static LocalDate toLocalDate(Object obj)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDate.of().
obj - The object to be converted. (NullAllowed: if null, returns null)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalDate toLocalDate(Object obj, String pattern)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDate.parse().
obj - The object to be converted. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalDate toLocalDate(Object obj, TimeZone timeZone)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDate.of(). and millisecond handling is following:
obj - The object to be converted. (NullAllowed: if null, returns null)timeZone - The time-zone for the local date. (NotNull: no used when string is specified)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalDate toLocalDate(Object obj, String pattern, TimeZone timeZone)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDate.parse().
obj - The object to be converted. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)timeZone - The time-zone for the local date. (NotNull: no used when string is specified)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.protected static LocalDate doConvertToLocalDate(Object obj, String pattern, TimeZone timeZone)
protected static LocalDate doParseStringAsLocalDate(String str, String pattern)
public static LocalDateTime toLocalDateTime(Object obj)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDateTime.of(). and millisecond handling is following:
e.g. millisecond and nanosecond handling "2014/10/28 12:34:56.789" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789000000) "2014/10/28 12:34:56.7" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 007000000) "2014/10/28 12:34:56.78" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 078000000) "2014/10/28 12:34:56.7891" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789100000) "2014/10/28 12:34:56.789123" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789123000) "2014/10/28 12:34:56.789123456" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789123456)
obj - The object to be converted. (NullAllowed: if null, returns null)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalDateTime toLocalDateTime(Object obj, String pattern)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDateTime.parse().
obj - The object to be converted. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalDateTime toLocalDateTime(Object obj, TimeZone timeZone)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDateTime.of(). and millisecond handling is following:
e.g. millisecond and nanosecond handling "2014/10/28 12:34:56.789" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789000000) "2014/10/28 12:34:56.7" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 007000000) "2014/10/28 12:34:56.78" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 078000000) "2014/10/28 12:34:56.7891" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789100000) "2014/10/28 12:34:56.789123" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789123000) "2014/10/28 12:34:56.789123456" :: same as LocalDateTime.of(2014, 10, 28, 12, 34, 56, 789123456)
obj - The object to be converted. (NullAllowed: if null, returns null)timeZone - The time-zone for the local date-time. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalDateTime toLocalDateTime(Object obj, String pattern, TimeZone timeZone)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalDate.parse().
obj - The object to be converted. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)timeZone - The time-zone for the local date-time. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.protected static LocalDateTime doConvertToLocalDateTime(Object obj, String pattern, TimeZone timeZone)
protected static LocalDateTime doParseStringAsLocalDateTime(String str, String pattern)
public static LocalTime toLocalTime(Object obj)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalTime.of(). and millisecond handling is following:
e.g. millisecond and nanosecond handling "2014/10/28 12:34:56.789" :: same as LocalTime.of(12, 34, 56, 789000000) "2014/10/28 12:34:56.7" :: same as LocalTime.of(34, 56, 007000000) "2014/10/28 12:34:56.78" :: same as LocalTime.of(12, 34, 56, 078000000) "2014/10/28 12:34:56.7891" :: same as LocalTime.of(12, 34, 56, 789100000) "2014/10/28 12:34:56.789123" :: same as LocalTime.of(12, 34, 56, 789123000) "2014/10/28 12:34:56.789123456" :: same as LocalTime.of(12, 34, 56, 789123456)
obj - The object to be converted. (NullAllowed: if null, returns null)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalTime toLocalTime(Object obj, String pattern)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalTime.parse().
obj - The object to be converted. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalTime toLocalTime(Object obj, TimeZone timeZone)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalTime.of(). and millisecond handling is following:
e.g. millisecond and nanosecond handling "2014/10/28 12:34:56.789" :: same as LocalTime.of(12, 34, 56, 789000000) "2014/10/28 12:34:56.7" :: same as LocalTime.of(34, 56, 007000000) "2014/10/28 12:34:56.78" :: same as LocalTime.of(12, 34, 56, 078000000) "2014/10/28 12:34:56.7891" :: same as LocalTime.of(12, 34, 56, 789100000) "2014/10/28 12:34:56.789123" :: same as LocalTime.of(12, 34, 56, 789123000) "2014/10/28 12:34:56.789123456" :: same as LocalTime.of(12, 34, 56, 789123456)
obj - The object to be converted. (NullAllowed: if null, returns null)timeZone - The time-zone for the local time. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.public static LocalTime toLocalTime(Object obj, String pattern, TimeZone timeZone)
If string expression is specified, The year, month, ... parts are parsed from the string. Then the time-zone is not used in conversion. It uses LocalTime.parse().
obj - The object to be converted. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)timeZone - The time-zone for the local time. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.protected static LocalTime doConvertToLocalTime(Object obj, String pattern, TimeZone timeZone)
protected static LocalTime doParseStringAsLocalTime(String str, String pattern)
protected static ZonedDateTime toZonedDateTime(Object obj, TimeZone timeZone)
obj - The object to be converted. (NullAllowed: if null, returns null)timeZone - The time-zone for the local date. (NotNull)public static boolean isAnyLocalDate(Object obj)
obj - The object to be judged. (NotNull)public static boolean isLocalDateOrDateTime(Object obj)
obj - The object to be judged. (NotNull)public static boolean isAnyLocalDateType(Class<?> type)
type - The class type to be judged. (NotNull)public static boolean isLocalDateOrDateTimeType(Class<?> type)
type - The class type to be judged. (NotNull)public static boolean isLocalDateAD(LocalDate date)
public static boolean isLocalDateBC(LocalDate date)
public static <DATE> DATE toPointDate(Object obj, Class<DATE> type)
DATE - The type of date.obj - The resource of number. (NullAllowed: if null, returns null)type - The type of number. (NotNull)public static Date toDate(Object obj)
obj - The parsed object. (NullAllowed: if null, returns null)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseDateOutOfCalendarException - When the date was out of calendar. (if BC, not thrown)public static Date toDate(Object obj, TimeZone timeZone)
obj - The parsed object. (NullAllowed: if null, returns null)timeZone - The time-zone to parse the string expression. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseDateOutOfCalendarException - When the date was out of calendar. (if BC, not thrown)public static Date toDate(Object obj, String pattern)
obj - The parsed object. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseDateOutOfCalendarException - When the date was out of calendar. (if BC, not thrown)public static Date toDate(Object obj, String pattern, Locale locale)
obj - The parsed object. (NullAllowed: if null, returns null)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseDateOutOfCalendarException - When the date was out of calendar. (if BC, not thrown)public static Date toDate(Object obj, TimeZone timeZone, String pattern, Locale locale)
obj - The parsed object. (NullAllowed: if null, returns null)timeZone - The time-zone to parse the string expression. (NotNull)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseDateException - When it failed to parse the string to date.DfTypeUtil.ParseDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseDateOutOfCalendarException - When the date was out of calendar. (if BC, not thrown)protected static Date doConvertToDate(Object obj, TimeZone timeZone, String pattern, Locale locale)
protected static Date doParseStringAsDate(String str, TimeZone timeZone, String pattern, Locale locale)
protected static String filterDateStringValueFlexibly(String pureStr, boolean includeTime, boolean includeMillis, boolean keepMillisMore)
protected static String handleTimeZeroPrefix(String time, String pureStr, boolean includeMillis, boolean keepMillisMore)
protected static Integer formatDateElementAsNumber(String str, String title, String pureValue)
protected static String resolveDateElementZeroPrefix(String str, int count)
protected static String resolveDateElementZeroSuffix(String str, int count)
protected static Date doParseLocalDateAsDate(LocalDate localDate, TimeZone timeZone)
protected static Date doParseLocalDateTimeAsDate(LocalDateTime localDateTime, TimeZone timeZone)
protected static Timestamp doParseLocalDateAsTimestamp(LocalDate localDate, TimeZone timeZone)
protected static Timestamp doParseLocalDateTimeAsTimestamp(LocalDateTime localDateTime, TimeZone timeZone)
public static boolean isDateAD(Date date)
public static boolean isDateBC(Date date)
protected static long getTimeZonedADOriginMillis(TimeZone timeZone)
protected static void addDateYear(Date date, int years)
protected static void addDateMonth(Date date, int months)
protected static void addDateDay(Date date, int days)
protected static void addDateHour(Date date, int hours)
protected static void addDateMinute(Date date, int minutes)
protected static void addDateSecond(Date date, int seconds)
protected static void addDateMillisecond(Date date, int milliseconds)
protected static void addDateWeekOfMonth(Date date, int weeksOfMonth)
protected static void moveToDateYear(Date date, int year)
protected static void moveToDateYearJust(Date date)
protected static void moveToDateYearJust(Date date, int yearBeginMonth)
protected static void moveToDateYearJustAdded(Date date, int year)
protected static void moveToDateYearJustFor(Date date, int year)
protected static void moveToDateYearTerminal(Date date)
protected static void moveToDateYearTerminal(Date date, int yearBeginMonth)
protected static void moveToDateYearTerminalAdded(Date date, int year)
protected static void moveToDateYearTerminalFor(Date date, int year)
protected static void moveToDateMonth(Date date, int month)
protected static void moveToDateMonthJust(Date date)
protected static void moveToDateMonthJust(Date date, int monthBeginDay)
protected static void moveToDateMonthAdded(Date date, int month)
protected static void moveToDateMonthFor(Date date, int month)
protected static void moveToDateMonthTerminal(Date date)
protected static void moveToDateMonthTerminal(Date date, int monthBeginDay)
protected static void moveToDateMonthTerminalAdded(Date date, int month)
protected static void moveToDateMonthTerminalFor(Date date, int month)
protected static void moveToDateDay(Date date, int day)
protected static void moveToDateDayJust(Date date)
protected static void moveToDateDayJust(Date date, int dayBeginHour)
protected static void moveToDateDayJustAdded(Date date, int day)
protected static void moveToDateDayJustFor(Date date, int day)
protected static void moveToDateDayTerminal(Date date)
protected static void moveToDateDayTerminal(Date date, int dayBeginHour)
protected static void moveToDateDayTerminalAdded(Date date, int day)
protected static void moveToDateDayTerminalFor(Date date, int day)
protected static void moveToDateHour(Date date, int hour)
protected static void moveToDateHourJust(Date date)
protected static void moveToDateHourJustAdded(Date date, int hour)
protected static void moveToDateHourJustFor(Date date, int hour)
protected static void moveToDateHourJustNoon(Date date)
protected static void moveToDateHourTerminal(Date date)
protected static void moveToDateHourTerminalAdded(Date date, int hour)
protected static void moveToDateHourTerminalFor(Date date, int hour)
protected static void moveToDateMinute(Date date, int minute)
protected static void moveToDateMinuteJust(Date date)
protected static void moveToDateMinuteJustAdded(Date date, int minute)
protected static void moveToDateMinuteJustFor(Date date, int minute)
protected static void moveToDateMinuteTerminal(Date date)
protected static void moveToDateMinuteTerminalAdded(Date date, int minute)
protected static void moveToDateMinuteTerminalFor(Date date, int minute)
protected static void moveToDateSecond(Date date, int second)
protected static void moveToDateSecondJust(Date date)
protected static void moveToDateSecondJustAdded(Date date, int second)
protected static void moveToDateSecondJustFor(Date date, int second)
protected static void moveToDateSecondTerminal(Date date)
protected static void moveToDateSecondTerminalAdded(Date date, int second)
protected static void moveToDateSecondTerminalFor(Date date, int second)
protected static void moveToDateWeekJust(Date date, int weekStartDay)
protected static void moveToDateWeekTerminal(Date date, int weekStartDay)
protected static void moveToDateQuarterOfYearJust(Date date)
protected static void moveToDateQuarterOfYearJust(Date date, int yearBeginMonth)
protected static void moveToDateQuarterOfYearJustFor(Date date, int quarterOfYear)
protected static void moveToDateQuarterOfYearJustFor(Date date, int quarterOfYear, int yearBeginMonth)
protected static void moveToDateQuarterOfYearTerminal(Date date)
protected static void moveToDateQuarterOfYearTerminal(Date date, int yearBeginMonth)
protected static void moveToDateQuarterOfYearTerminalFor(Date date, int quarterOfYear)
protected static void moveToDateQuarterOfYearTerminalFor(Date date, int quarterOfYear, int yearBeginMonth)
protected static void clearDateTimeParts(Date date)
protected static void clearDateMinuteWithRear(Date date)
protected static void clearDateSecondWithRear(Date date)
protected static void clearDateMillisecond(Date date)
public static DateFormat createDateFormat(String pattern)
public static DateFormat createDateFormat(TimeZone timeZone, String pattern, Locale locale, boolean strict)
protected static DateFormat doCreateDateFormat(String pattern, TimeZone timeZone, Locale locale, boolean strict)
public static Timestamp toTimestamp(Object obj)
obj - The parsed object. (NullAllowed)DfTypeUtil.ParseTimestampException - When it failed to parse the string to time-stamp.DfTypeUtil.ParseTimestampNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimestampOutOfCalendarException - When the time-stamp was out of calendar. (if BC, not thrown)public static Timestamp toTimestamp(Object obj, TimeZone timeZone)
obj - The parsed object. (NullAllowed)timeZone - The time-zone to parse the string expression. (NotNull)DfTypeUtil.ParseTimestampException - When it failed to parse the string to time-stamp.DfTypeUtil.ParseTimestampNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimestampOutOfCalendarException - When the time-stamp was out of calendar. (if BC, not thrown)public static Timestamp toTimestamp(Object obj, String pattern)
obj - The parsed object. (NullAllowed)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseTimestampException - When it failed to parse the string to time-stamp.DfTypeUtil.ParseTimestampNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimestampOutOfCalendarException - When the time-stamp was out of calendar. (if BC, not thrown)public static Timestamp toTimestamp(Object obj, String pattern, Locale locale)
obj - The parsed object. (NullAllowed)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseTimestampException - When it failed to parse the string to time-stamp.DfTypeUtil.ParseTimestampNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimestampOutOfCalendarException - When the time-stamp was out of calendar. (if BC, not thrown)public static Timestamp toTimestamp(Object obj, TimeZone timeZone, String pattern, Locale locale)
obj - The parsed object. (NullAllowed)timeZone - The time-zone to parse the string expression. (NotNull)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseTimestampException - When it failed to parse the string to time-stamp.DfTypeUtil.ParseTimestampNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimestampOutOfCalendarException - When the time-stamp was out of calendar. (if BC, not thrown)protected static Timestamp doConvertToTimestamp(Object obj, TimeZone timeZone, String pattern, Locale locale)
protected static Timestamp doParseStringAsTimestamp(String str, TimeZone timeZone, String pattern, Locale locale)
protected static String filterTimestampStringValueFlexibly(String pureStr)
public static Time toTime(Object obj)
obj - The parsed object. (NullAllowed)DfTypeUtil.ParseTimeException - When it failed to parse the string to time.DfTypeUtil.ParseTimeNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimeOutOfCalendarException - When the time is out of calendar.public static Time toTime(Object obj, TimeZone timeZone)
obj - The parsed object. (NullAllowed)timeZone - The time-zone to parse the string expression. (NotNull)DfTypeUtil.ParseTimeException - When it failed to parse the string to time.DfTypeUtil.ParseTimeNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimeOutOfCalendarException - When the time is out of calendar.public static Time toTime(Object obj, String pattern)
obj - The parsed object. (NullAllowed)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseTimeException - When it failed to parse the string to time.DfTypeUtil.ParseTimeNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimeOutOfCalendarException - When the time is out of calendar.public static Time toTime(Object obj, String pattern, Locale locale)
obj - The parsed object. (NullAllowed)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseTimeException - When it failed to parse the string to time.DfTypeUtil.ParseTimeNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimeOutOfCalendarException - When the time is out of calendar.public static Time toTime(Object obj, TimeZone timeZone, String pattern, Locale locale)
obj - The parsed object. (NullAllowed)timeZone - The time-zone to parse the string expression. (NotNull)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseTimeException - When it failed to parse the string to time.DfTypeUtil.ParseTimeNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseTimeOutOfCalendarException - When the time is out of calendar.protected static Time doConvertToTime(Object obj, TimeZone timeZone, String pattern, Locale locale)
protected static Time doParseStringAsTime(String str, TimeZone timeZone, String pattern, Locale locale)
protected static String filterTimeStringValueFlexibly(String pureStr, boolean includeMillis, boolean keepMillisMore)
public static Date toSqlDate(Object obj)
obj - The parsed object. (NullAllowed)DfTypeUtil.ParseSqlDateException - When it failed to parse the string to SQL date.DfTypeUtil.ParseSqlDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseSqlDateOutOfCalendarException - When the time is out of calendar.public static Date toSqlDate(Object obj, TimeZone timeZone)
obj - The parsed object. (NullAllowed)timeZone - The time-zone to parse the string expression. (NotNull)DfTypeUtil.ParseSqlDateException - When it failed to parse the string to SQL date.DfTypeUtil.ParseSqlDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseSqlDateOutOfCalendarException - When the time is out of calendar.public static Date toSqlDate(Object obj, String pattern)
obj - The parsed object. (NullAllowed)pattern - The pattern format to parse when the object is string. (NotNull)DfTypeUtil.ParseSqlDateException - When it failed to parse the string to SQL date.DfTypeUtil.ParseSqlDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseSqlDateOutOfCalendarException - When the time is out of calendar.public static Date toSqlDate(Object obj, String pattern, Locale locale)
obj - The parsed object. (NullAllowed)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseSqlDateException - When it failed to parse the string to SQL date.DfTypeUtil.ParseSqlDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseSqlDateOutOfCalendarException - When the time is out of calendar.public static Date toSqlDate(Object obj, TimeZone timeZone, String pattern, Locale locale)
obj - The parsed object. (NullAllowed)timeZone - The time-zone to parse the string expression. (NotNull)pattern - The pattern format to parse when the object is string. (NotNull)locale - The locale to parse the date expression. (NotNull)DfTypeUtil.ParseSqlDateException - When it failed to parse the string to SQL date.DfTypeUtil.ParseSqlDateNumberFormatException - When it failed to format the elements as number.DfTypeUtil.ParseSqlDateOutOfCalendarException - When the time is out of calendar.protected static Date doConvertToSqlDate(Object obj, TimeZone timeZone, String pattern, Locale locale)
public static Calendar toCalendar(Object obj, TimeZone timeZone, String pattern, Locale locale)
protected static Calendar doConvertToCalendar(Object obj, TimeZone timeZone, String pattern, Locale locale)
public static void addCalendarYear(Calendar cal, int years)
public static void addCalendarMonth(Calendar cal, int months)
public static void addCalendarDay(Calendar cal, int days)
public static void addCalendarHour(Calendar cal, int hours)
public static void addCalendarMinute(Calendar cal, int minutes)
public static void addCalendarSecond(Calendar cal, int seconds)
public static void addCalendarMillisecond(Calendar cal, int milliseconds)
public static void addCalendarWeek(Calendar cal, int weeks)
public static void addCalendarQuarterOfYear(Calendar cal, int quartersOfYear)
public static void moveToCalendarYear(Calendar cal, int year)
public static void moveToCalendarYearJust(Calendar cal)
public static void moveToCalendarYearJust(Calendar cal, int yearBeginMonth)
public static void moveToCalendarYearJustAdded(Calendar cal, int years)
public static void moveToCalendarYearJustFor(Calendar cal, int year)
public static void moveToCalendarYearTerminal(Calendar cal)
public static void moveToCalendarYearTerminal(Calendar cal, int yearBeginMonth)
public static void moveToCalendarYearTerminalAdded(Calendar cal, int years)
public static void moveToCalendarYearTerminalFor(Calendar cal, int year)
public static void moveToCalendarMonth(Calendar cal, int month)
public static void moveToCalendarMonthJust(Calendar cal)
public static void moveToCalendarMonthJust(Calendar cal, int monthBeginDay)
public static void moveToCalendarMonthJustAdded(Calendar cal, int months)
public static void moveToCalendarMonthJustFor(Calendar cal, int month)
public static void moveToCalendarMonthTerminal(Calendar cal)
public static void moveToCalendarMonthTerminal(Calendar cal, int monthBeginDay)
public static void moveToCalendarMonthTerminalAdded(Calendar cal, int months)
public static void moveToCalendarMonthTerminalFor(Calendar cal, int month)
public static void moveToCalendarDay(Calendar cal, int day)
public static void moveToCalendarDayJust(Calendar cal)
public static void moveToCalendarDayJust(Calendar cal, int dayBeginHour)
public static void moveToCalendarDayJustAdded(Calendar cal, int days)
public static void moveToCalendarDayJustFor(Calendar cal, int day)
public static void moveToCalendarDayTerminal(Calendar cal)
public static void moveToCalendarDayTerminal(Calendar cal, int dayBeginHour)
public static void moveToCalendarDayTerminalAdded(Calendar cal, int days)
public static void moveToCalendarDayTerminalFor(Calendar cal, int day)
public static void moveToCalendarHour(Calendar cal, int hour)
public static void moveToCalendarHourJust(Calendar cal)
public static void moveToCalendarHourJustAdded(Calendar cal, int hours)
public static void moveToCalendarHourJustFor(Calendar cal, int hour)
public static void moveToCalendarHourJustNoon(Calendar cal)
public static void moveToCalendarHourTerminal(Calendar cal)
public static void moveToCalendarHourTerminalAdded(Calendar cal, int hours)
public static void moveToCalendarHourTerminalFor(Calendar cal, int hour)
public static void moveToCalendarMinute(Calendar cal, int minute)
public static void moveToCalendarMinuteJust(Calendar cal)
public static void moveToCalendarMinuteJustAdded(Calendar cal, int minutes)
public static void moveToCalendarMinuteJustFor(Calendar cal, int minute)
public static void moveToCalendarMinuteTerminal(Calendar cal)
public static void moveToCalendarMinuteTerminalAdded(Calendar cal, int minutes)
public static void moveToCalendarMinuteTerminalFor(Calendar cal, int minute)
public static void moveToCalendarSecond(Calendar cal, int second)
public static void moveToCalendarSecondJust(Calendar cal)
public static void moveToCalendarSecondJustAdded(Calendar cal, int seconds)
public static void moveToCalendarSecondJustFor(Calendar cal, int second)
public static void moveToCalendarSecondTerminal(Calendar cal)
public static void moveToCalendarSecondTerminalAdded(Calendar cal, int seconds)
public static void moveToCalendarSecondTerminalFor(Calendar cal, int second)
public static void moveToCalendarMillisecond(Calendar cal, int millisecond)
public static void moveToCalendarWeekOfMonth(Calendar cal, int weekOfMonth)
public static void moveToCalendarWeekOfYear(Calendar cal, int weekOfYear)
public static void moveToCalendarWeekJust(Calendar cal)
public static void moveToCalendarWeekJust(Calendar cal, int weekBeginDayOfWeek)
public static void moveToCalendarWeekTerminal(Calendar cal)
public static void moveToCalendarWeekTerminal(Calendar cal, int weekBeginDayOfWeek)
public static void moveToCalendarQuarterOfYearJust(Calendar cal)
public static void moveToCalendarQuarterOfYearJust(Calendar cal, int yearBeginMonth)
public static void moveToCalendarQuarterOfYearJustAdded(Calendar cal, int quartersOfYear)
public static void moveToCalendarQuarterOfYearJustAdded(Calendar cal, int quartersOfYear, int yearBeginMonth)
public static void moveToCalendarQuarterOfYearJustFor(Calendar cal, int quarterOfYear)
public static void moveToCalendarQuarterOfYearJustFor(Calendar cal, int quarterOfYear, int yearBeginMonth)
public static void moveToCalendarQuarterOfYearTerminal(Calendar cal)
public static void moveToCalendarQuarterOfYearTerminal(Calendar cal, int yearBeginMonth)
public static void moveToCalendarQuarterOfYearTerminalAdded(Calendar cal, int quartersOfYear)
public static void moveToCalendarQuarterOfYearTerminalAdded(Calendar cal, int quartersOfYear, int yearBeginMonth)
public static void moveToCalendarQuarterOfYearTerminalFor(Calendar cal, int quarterOfYear)
public static void moveToCalendarQuarterOfYearTerminalFor(Calendar cal, int quarterOfYear, int yearBeginMonth)
public static void clearCalendarTimeParts(Calendar cal)
public static void clearCalendarMinuteWithRear(Calendar cal)
public static void clearCalendarSecondWithRear(Calendar cal)
public static void clearCalendarMillisecond(Calendar cal)
public static boolean toPrimitiveBoolean(Object obj)
public static byte[] toBinary(Serializable obj)
public static <SER extends Serializable> SER toSerializable(byte[] bytes)
protected static DecimalFormatSymbols getDecimalFormatSymbols(Locale locale)
protected static void assertTimeZoneNotNull(String methodName, TimeZone timeZone)
protected static void assertArgumentNotZeroInteger(String name, int value)
protected static void assertArgumentNotMinusInteger(String name, int value)
protected static void assertArgumentNotMinusNotZeroInteger(String name, int value)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.