In what format does ToStringBuilder.reflectionToString(Object)
display dates? According to the Apache Commons Lang 2.4 documentation, ToStringBuilder.reflectionToString(Object)
delegates to ReflectionToStringBuilder.toString(Object)
which "Builds a toString
value using the default ToStringStyle
through reflection." So, in what format does the default ToStringStyle
display dates?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
The default toString style. Using the Person example from ToStringBuilder, the output would look like this:
DefaultToStringStyle
is just an immutable subclass ofToStringStyle
, so it falls back on that for handling.ToStringStyle
does not have any special handling for dates, so it just usesDate
'stoString
.However, there is actually an example of adding it.