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.SerializableClass 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 classDateTimeFormat.BuilderBuilder 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 booleanequals(java.lang.Object o)java.lang.StringgetPattern()TimeZonegetTimeZone()inthashCode()voidsetPattern(java.lang.String pattern)voidsetTimeZone(TimeZone timeZone)java.lang.StringtoString()
-
-
-
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 ofDateTimeFormattertimeZone- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-