public final class

MultiValueOperand

extends Object
implements Operand
java.lang.Object
   ↳ com.atlassian.query.operand.MultiValueOperand

Class Overview

Used to represent a multiple constant values as an Operand.

Summary

Constants
String OPERAND_NAME
Public Constructors
MultiValueOperand(String... stringValues)
MultiValueOperand(List<Long> longs)
MultiValueOperand(Long... longs)
MultiValueOperand(Operand... operands)
MultiValueOperand(QueryLiteral... literals)
MultiValueOperand(Collection<? extends Operand> values)
Public Methods
<R> R accept(OperandVisitor<R> visitor)
Allows us to perform operations over the operand based on the passed in visitor.
boolean equals(Object o)
String getDisplayString()
Produces the unexpanded representation of the Operand.
String getName()
The name that represents this Operand.
List<Operand> getValues()
int hashCode()
static MultiValueOperand ofQueryLiterals(Collection<QueryLiteral> literals)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.operand.Operand

Constants

public static final String OPERAND_NAME

Constant Value: "MultiValueOperand"

Public Constructors

public MultiValueOperand (String... stringValues)

public MultiValueOperand (List<Long> longs)

public MultiValueOperand (Long... longs)

public MultiValueOperand (Operand... operands)

public MultiValueOperand (QueryLiteral... literals)

public MultiValueOperand (Collection<? extends Operand> values)

Public Methods

public R accept (OperandVisitor<R> visitor)

Allows us to perform operations over the operand based on the passed in visitor. This method calls the visit method on the visitor with this reference.

Parameters
visitor the visitor to accept.
Returns
  • the result of the visit operation who's type is specified by the incomming visitor.

public boolean equals (Object o)

public String getDisplayString ()

Produces the unexpanded representation of the Operand. In the case of a function operand this would be the function as represented in the Query (i.e. group(jira-users)).

Returns
  • a string that represents this operand as represented in the JQL query string.

public String getName ()

The name that represents this Operand.

Returns
  • the name of the operand, null if the operand is unnamed. If an operand is unnamed then it likely represents literal values (such as Strings or Longs).

public List<Operand> getValues ()

public int hashCode ()

public static MultiValueOperand ofQueryLiterals (Collection<QueryLiteral> literals)