class FieldWriterDate<T> extends FieldWriter<T>
| Modifier and Type | Field and Description |
|---|---|
protected ObjectWriter |
dateWriter |
(package private) boolean |
formatISO8601 |
(package private) boolean |
formatMillis |
protected java.time.format.DateTimeFormatter |
formatter |
(package private) boolean |
formatUnixTime |
(package private) boolean |
formatyyyyMMdd8 |
(package private) boolean |
formatyyyyMMddhhmmss14 |
(package private) boolean |
formatyyyyMMddhhmmss19 |
backReference, decimalFormat, defaultValue, features, field, fieldClass, fieldClassSerializable, fieldName, fieldOffset, fieldType, format, function, hashCode, initObjectWriter, initObjectWriterUpdater, label, locale, managedReference, method, nameJSONB, nameSymbolCache, nameWithColonUTF16, nameWithColonUTF8, ordinal, path, primitive, propertyAccessor, raw, rootParentPath, symbol, trim| Modifier | Constructor and Description |
|---|---|
protected |
FieldWriterDate(java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Type fieldType,
java.lang.Class fieldClass,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.lang.Object function) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFieldValue(T object) |
java.time.format.DateTimeFormatter |
getFormatter() |
ObjectWriter |
getObjectWriter(JSONWriter jsonWriter,
java.lang.Class valueClass) |
boolean |
isDateFormatISO8601() |
boolean |
isDateFormatMillis() |
boolean |
write(JSONWriter jsonWriter,
T object) |
void |
writeDate(JSONWriter jsonWriter,
long timeMillis) |
void |
writeValue(JSONWriter jsonWriter,
T object) |
compareTo, errorOnGet, getFunction, getInitWriter, getItemClass, getItemType, getItemWriter, getObjectWriter, getPath, getRootParentPath, isFieldClassSerializable, isRefDetect, setDefaultValue, toString, unwrapped, writeBinary, writeBool, writeBool, writeDate, writeDate, writeDouble, writeDouble, writeDouble, writeEnum, writeEnumJSONB, writeEnumValueJSONB, writeFieldName, writeFieldNameJSONB, writeFieldNameJSONB, writeFieldNameJSONB, writeFieldNameSymbol, writeFloat, writeFloat, writeFloatNull, writeInt16, writeInt32, writeInt64, writeIntNull, writeList, writeListJSONB, writeListStr, writeListValue, writeListValueJSONB, writeString, writeStringprotected java.time.format.DateTimeFormatter formatter
final boolean formatMillis
final boolean formatISO8601
final boolean formatyyyyMMdd8
final boolean formatyyyyMMddhhmmss14
final boolean formatyyyyMMddhhmmss19
final boolean formatUnixTime
protected ObjectWriter dateWriter
protected FieldWriterDate(java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Type fieldType,
java.lang.Class fieldClass,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.lang.Object function)
public boolean isDateFormatMillis()
isDateFormatMillis in class FieldWriter<T>public boolean isDateFormatISO8601()
isDateFormatISO8601 in class FieldWriter<T>public java.time.format.DateTimeFormatter getFormatter()
public ObjectWriter getObjectWriter(JSONWriter jsonWriter, java.lang.Class valueClass)
getObjectWriter in class FieldWriter<T>public void writeDate(JSONWriter jsonWriter, long timeMillis)
writeDate in class FieldWriter<T>public java.lang.Object getFieldValue(T object)
getFieldValue in class FieldWriter<T>public void writeValue(JSONWriter jsonWriter, T object)
writeValue in class FieldWriter<T>public boolean write(JSONWriter jsonWriter, T object)
write in class FieldWriter<T>