Class LongField

java.lang.Object
com.atlassian.jira.search.field.LongField
All Implemented Interfaces:
Field, NumericField, TypedField<Long>

@PublicApi public final class LongField extends Object implements NumericField
Field for long
Since:
10.4
  • Method Details

    • accept

      public <T> T accept(FieldVisitor<T> visitor)
      Specified by:
      accept in interface Field
    • builder

      public static LongField.Builder builder(String fieldName)
    • get

      public List<Long> get(Document document)
      Description copied from interface: TypedField
      Get field value from the document
      Specified by:
      get in interface TypedField<Long>
      Returns:
      the field value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • name

      public String name()
      Specified by:
      name in interface Field
    • isIndexed

      public boolean isIndexed()
      Specified by:
      isIndexed in interface Field
    • hasDocValues

      public boolean hasDocValues()
      Specified by:
      hasDocValues in interface Field
    • isStored

      public boolean isStored()
      Specified by:
      isStored in interface Field
    • isMultiValued

      public boolean isMultiValued()
      Description copied from interface: Field
      Whether the field is multiValued.
      Specified by:
      isMultiValued in interface Field
      Returns:
      boolean
    • subfields

      public List<Field> subfields()
      Specified by:
      subfields in interface Field
    • getValueType

      public Class<Long> getValueType()
      Description copied from interface: TypedField
      The java class of the value that this field holds
      Specified by:
      getValueType in interface TypedField<T>
      Returns:
      the java class of the value that this field holds
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringBuilder

      protected org.apache.commons.lang3.builder.ToStringBuilder toStringBuilder()