Package stroom.query.api.v2
Class DateTimeFormat
- java.lang.Object
-
- stroom.query.api.v2.DateTimeFormat
-
- All Implemented Interfaces:
java.io.Serializable
public final class DateTimeFormat extends java.lang.Object implements java.io.Serializable
Class for describing the format to use for formatting a date time value- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateTimeFormat.Builder
Builder for constructing adateTimeFormat
-
Constructor Summary
Constructors Constructor Description DateTimeFormat()
Default constructor for deserialisationDateTimeFormat(java.lang.String pattern, TimeZone timeZone)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getPattern()
TimeZone
getTimeZone()
int
hashCode()
void
setPattern(java.lang.String pattern)
void
setTimeZone(TimeZone timeZone)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DateTimeFormat
public DateTimeFormat()
Default constructor for deserialisation
-
DateTimeFormat
public DateTimeFormat(java.lang.String pattern, TimeZone timeZone)
- Parameters:
pattern
- A date time formatting pattern string conforming to the specification ofDateTimeFormatter
timeZone
- The time zone to use when formatting the date time value
-
-
Method Detail
-
getPattern
public java.lang.String getPattern()
- Returns:
- The format pattern string, conforming to
DateTimeFormatter
-
setPattern
public void setPattern(java.lang.String pattern)
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-