public class StrftimeFormatter extends Object
| Constructor and Description |
|---|
StrftimeFormatter(String pattern,
Locale locale,
boolean strict,
ZoneIdResolver zoneIdResolver) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object obj) |
void |
formatTo(Object obj,
StringBuilder sb) |
static StrftimeFormatter |
ofSafePattern(String pattern) |
static StrftimeFormatter |
ofSafePattern(String pattern,
Locale locale) |
static StrftimeFormatter |
ofStrictPattern(String pattern) |
static StrftimeFormatter |
ofStrictPattern(String pattern,
Locale locale) |
StrftimeFormatter |
withLocale(Locale locale) |
StrftimeFormatter |
withZoneIdResolver(ZoneIdResolver resolver) |
public StrftimeFormatter(String pattern, Locale locale, boolean strict, ZoneIdResolver zoneIdResolver)
public static StrftimeFormatter ofSafePattern(String pattern)
public static StrftimeFormatter ofSafePattern(String pattern, Locale locale)
public static StrftimeFormatter ofStrictPattern(String pattern)
public static StrftimeFormatter ofStrictPattern(String pattern, Locale locale)
public StrftimeFormatter withLocale(Locale locale)
public StrftimeFormatter withZoneIdResolver(ZoneIdResolver resolver)
public void formatTo(Object obj, StringBuilder sb)
Copyright © 2021. All rights reserved.