Add toStringAll() for debugging.

This commit is contained in:
Gary Gregory 2021-02-23 22:08:29 -05:00
parent 9281de1b1b
commit e27c7a4842
1 changed files with 11 additions and 1 deletions

View File

@ -327,8 +327,18 @@ public String toString() {
return "FastDateParser[" + pattern + ", " + locale + ", " + timeZone.getID() + "]";
}
/**
* Converts all state of this instance to a String handy for debugging.
*
* @return a string.
* @since 3.12.0
*/
public String toStringAll() {
return "FastDateParser [pattern=" + pattern + ", timeZone=" + timeZone + ", locale=" + locale + ", century="
+ century + ", startYear=" + startYear + ", patterns=" + patterns + "]";
}
// Serializing
//-----------------------------------------------------------------------
/**
* Creates the object after serialization. This implementation reinitializes the
* transient properties.