Package com.atlassian.jira.search.field
Class DateTimeField
java.lang.Object
com.atlassian.jira.search.field.DateTimeField
- All Implemented Interfaces:
Field,NumericField,TypedField<Date>
Field for date time. Date is stored internally as milliseconds since epoch. Dates before the 1st of January 1970 UTC
are stored as a negative number.
- Since:
- 10.6
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(FieldVisitor<T> visitor) static DateTimeField.BuilderbooleanGet field value from the documentThe java class of the value that this field holdsbooleaninthashCode()booleanbooleanWhether the field is multiValued.booleanisStored()name()toString()protected org.apache.commons.lang3.builder.ToStringBuilderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.jira.search.Field
hasDocValues, isIndexed, isMultiValued, isStored, name, subfields
-
Method Details
-
accept
-
get
Description copied from interface:TypedFieldGet field value from the document- Specified by:
getin interfaceTypedField<Date>- Returns:
- the field value
-
builder
-
hashCode
public int hashCode() -
name
-
isIndexed
public boolean isIndexed() -
hasDocValues
public boolean hasDocValues()- Specified by:
hasDocValuesin interfaceField
-
isStored
public boolean isStored() -
isMultiValued
public boolean isMultiValued()Description copied from interface:FieldWhether the field is multiValued.- Specified by:
isMultiValuedin interfaceField- Returns:
- boolean
-
subfields
-
getValueType
Description copied from interface:TypedFieldThe java class of the value that this field holds- Specified by:
getValueTypein interfaceTypedField<T>- Returns:
- the java class of the value that this field holds
-
equals
-
toString
-
toStringBuilder
protected org.apache.commons.lang3.builder.ToStringBuilder toStringBuilder()
-