public final class

Operands

extends Object
java.lang.Object
   ↳ com.atlassian.query.operand.Operands

Class Overview

Factory class for creating operands.

Summary

Public Methods
static Operand getEmpty()
Return an operand that represents the JQL EMPTY value.
static Operand valueOf(Operand... operands)
Create an operand that represents a list of the passed operands.
static Operand valueOf(String value)
Create an operand that represents the passed string.
static Operand valueOf(Long value)
Create an operand that represents the passed number.
static Operand valueOf(Long... values)
Create an operands that represents a list of passed numbers.
static Operand valueOf(String... values)
Create an operands that represents a list of passed string values.
static Operand valueOfNumbers(Collection<Long> values)
Create an operands that represents a list of passed numbers.
static Operand valueOfOperands(Collection<Operand> operands)
Create an operand that represents a list of the passed operands.
static Operand valueOfStrings(Collection<String> values)
Create an operands that represents a list of passed string values.
Protected Methods
Object clone()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Operand getEmpty ()

Return an operand that represents the JQL EMPTY value.

Returns
  • the operand that represents the JQL EMPTY value.

public static Operand valueOf (Operand... operands)

Create an operand that represents a list of the passed operands.

Parameters
operands the list of value to convert. Cannot be null, empty or contain any null values.
Returns
  • the operand that represents the list of operands.

public static Operand valueOf (String value)

Create an operand that represents the passed string.

Parameters
value the value to wrap as an operand. Cannot be null.
Returns
  • the operand that represents the passed value.

public static Operand valueOf (Long value)

Create an operand that represents the passed number.

Parameters
value the value to wrap as an operand. Cannot be null.
Returns
  • the operand that represents the passed value.

public static Operand valueOf (Long... values)

Create an operands that represents a list of passed numbers.

Parameters
values the list of values to represent. Cannot be null, empty or contain any null values.
Returns
  • the operand that represents the list of values.

public static Operand valueOf (String... values)

Create an operands that represents a list of passed string values.

Parameters
values the list of values to represent. Cannot be null, empty or contain any null values.
Returns
  • the operand that represents the list of values.

public static Operand valueOfNumbers (Collection<Long> values)

Create an operands that represents a list of passed numbers.

Parameters
values the list of values to represent. Cannot be null, empty or contain any null values.
Returns
  • the operand that represents the list of values.

public static Operand valueOfOperands (Collection<Operand> operands)

Create an operand that represents a list of the passed operands.

Parameters
operands the list of value to convert. Cannot be null, empty or contain any null values.
Returns
  • the operand that represents the list of operands.

public static Operand valueOfStrings (Collection<String> values)

Create an operands that represents a list of passed string values.

Parameters
values the list of values to represent. Cannot be null, empty or contain any null values.
Returns
  • the operand that represents the list of values.

Protected Methods

protected Object clone ()