public interface JiraDataType
Fields handle data of a specified type and searchers and functions know which data-types they can handle working on.
Modifier and Type | Method and Description |
---|---|
Collection<String> |
asStrings()
Provides a string representation of this JiraDataType's actual types.
|
boolean |
matches(JiraDataType otherType)
Determines if this type matches the passed in other JiraDataType.
|
Collection<String> asStrings()
boolean matches(@Nonnull JiraDataType otherType)
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.
otherType
- the data type to compare to, not null.Copyright © 2002-2019 Atlassian. All Rights Reserved.