com.atlassian.query.operand
Class Operands

java.lang.Object
  extended by com.atlassian.query.operand.Operands

public final class Operands
extends java.lang.Object

Factory class for creating operands.

Since:
v4.0

Method Summary
protected  java.lang.Object clone()
           
static Operand getEmpty()
          Return an operand that represents the JQL EMPTY value.
static Operand valueOf(java.lang.Long... values)
          Create an operands that represents a list of passed numbers.
static Operand valueOf(java.lang.Long value)
          Create an operand that represents the passed number.
static Operand valueOf(Operand... operands)
          Create an operand that represents a list of the passed operands.
static Operand valueOf(java.lang.String... values)
          Create an operands that represents a list of passed string values.
static Operand valueOf(java.lang.String value)
          Create an operand that represents the passed string.
static Operand valueOfNumbers(java.util.Collection<java.lang.Long> values)
          Create an operands that represents a list of passed numbers.
static Operand valueOfOperands(java.util.Collection<Operand> operands)
          Create an operand that represents a list of the passed operands.
static Operand valueOfStrings(java.util.Collection<java.lang.String> values)
          Create an operands that represents a list of passed string values.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

valueOf

public static Operand valueOf(java.lang.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.

valueOf

public static Operand valueOf(java.lang.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.

valueOfStrings

public static Operand valueOfStrings(java.util.Collection<java.lang.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.

valueOf

public static Operand valueOf(java.lang.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.

valueOf

public static Operand valueOf(java.lang.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.

valueOfNumbers

public static Operand valueOfNumbers(java.util.Collection<java.lang.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.

valueOf

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.

valueOfOperands

public static Operand valueOfOperands(java.util.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.

getEmpty

public static Operand getEmpty()
Return an operand that represents the JQL EMPTY value.

Returns:
the operand that represents the JQL EMPTY value.


Copyright © 2002-2010 Atlassian. All Rights Reserved.