com.atlassian.jira.jql.operand
Class QueryLiteral
java.lang.Object
com.atlassian.jira.jql.operand.QueryLiteral
public class QueryLiteral
- extends Object
Used to communicate literal values, Strings or Longs, as input into the Operands.
- Long values are typically used to represent ids or raw numerical values. For example, issue ids are represented
using a Long.
- String values are typically used to represent raw string values or named values that need to be resolved into
ids. For example, issue keys or project names are represented using a String.
When writing JqlFunctions that must return QueryLiterals, try to
return the more specific QueryLiteral where possible, to avoid unnecessary resolving. "More specific" here means the
form that is used by the index (if applicable), as this value can then be used directly when constructing index
queries.
- Since:
- v4.0
QueryLiteral
public QueryLiteral()
QueryLiteral
public QueryLiteral(Long longValue)
QueryLiteral
public QueryLiteral(String stringValue)
getStringValue
public String getStringValue()
getLongValue
public Long getLongValue()
isEmpty
public boolean isEmpty()
asString
public String asString()
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2002-2009 Atlassian. All Rights Reserved.