Interface JiraDataType

All Known Implementing Classes:
JiraDataTypeImpl

public interface JiraDataType
Defines a domain specific data type. An example of this is Issue, Version, or Date.

Fields handle data of a specified type and searchers and functions know which data-types they can handle working on.

Since:
v4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides a string representation of this JiraDataType's actual types.
    boolean
    matches(JiraDataType otherType)
    Determines if this type matches the passed in other JiraDataType.
  • Method Details

    • asStrings

      Collection<String> asStrings()
      Provides a string representation of this JiraDataType's actual types. A JiraDataType can declare that it is made up of distinct types and this is why we return a collection of string representations.
      Returns:
      string representation of this JiraDataTypes's actual types.
    • matches

      boolean matches(@Nonnull JiraDataType otherType)
      Determines if this type matches the passed in other JiraDataType.

      This method runs through the data types and will return true if any of the types are equals to the other types.

      This method should be reflexive, if a.match(b) == true then b.match(a) == true

      There is a special case which is Object. This means all and any comparison against Object.class will return true for the match method.

      Parameters:
      otherType - the data type to compare to, not null.
      Returns:
      true if any of this types are assignable to the other types.