public class DateTimePattern extends Bean implements Comparable<DateTimePattern>
DateTimeFormatter
that can be used as keys in Map
and values in Set
.SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
DateTimePattern() |
DateTimePattern(String pattern)
Creates a new instance using a date-time pattern for case-insensitive parsing.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DateTimePattern o) |
boolean |
equals(Object that) |
DateTimeFormatter |
getFormatter() |
String |
getPattern()
Returns the date-time pattern for case-insensitive parsing.
|
int |
hashCode() |
DateTimePattern |
setPattern(String pattern)
Sets the date-time pattern for case-insensitive parsing.
|
String |
toString()
Returns a basic JSON representation of this instance.
|
addExceptionProperties, fromRecord, toRecord
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, fromXmlElement, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, toXmlElement, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties, exception, exception, exception
public DateTimePattern()
public DateTimePattern(String pattern)
DateTimeFormatterBuilder.appendPattern(String)
.pattern
- a date-format pattern for case-insensitive parsing. See DateTimeFormatterBuilder.appendPattern(String)
.public String getPattern()
DateTimeFormatterBuilder.appendPattern(String)
.public DateTimePattern setPattern(String pattern)
DateTimeFormatterBuilder.appendPattern(String)
.pattern
- a date-format pattern for case-insensitive parsing. See DateTimeFormatterBuilder.appendPattern(String)
.public DateTimeFormatter getFormatter()
public int compareTo(DateTimePattern o)
compareTo
in interface Comparable<DateTimePattern>
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.