IVariantOperations

Implements an abstractd variant operations manager object.

Description

The IVariantOperations class allows you to implement an abstract variant operations manager object.

Instance methods

add

Performs the ‘+’ operation for two variants.

Variant add(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

and

Performs the AND operation for two variants.

Variant and(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

convert

Converts the variant to a specified type.

Variant convert(Variant value, VariantType newType)

  • value: Variant - variant value to be converted.
  • newType: VariantType - type of object to be returned.
  • returns: Variant - converted Variant value.

div

Performs the ‘/’ operation for two variants.

Variant div(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

equal

Performs the ‘=’ operation for two variants.

Variant equal(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

getElement

Performs the [] operation for two variants.

Variant getElement(Variant value1, Variant value2) throws Exception

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

in

Performs the IN operation for two variants.

Variant in(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

less

Performs the ‘<’ operation for two variants.

Variant less(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

lessEqual

Performs the ‘<=’ operation for two variants.

Variant lessEqual(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

lsh

Performs the ‘«’ operation for two variants.

Variant lsh(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

mod

Performs the ‘%’ operation for two variants.

Variant mod(value1: Variant, value2: Variant)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

more

Performs the ‘>’ operation for two variants.

Variant more(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

moreEqual

Performs the ‘>=’ operation for two variants.

Variant moreEqual(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

mul

Performs the ‘*’ operation for two variants.

Variant mul(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

negative

Performs the unary ‘-’ operation for a variant.

Variant negative(Variant value)

  • value: Variant - first operand for this operation.
  • returns: Variant - result variant object.

not

Performs the NOT operation for a variant.

Variant not(Variant value)

  • value: Variant - first operand for this operation.
  • returns: Variant - result variant object.

notEqual

Performs the ‘<>’ operation for two variants.

Variant notEqual(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

or

Performs the OR operation for two variants.

Variant or(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

pow

Performs the ‘^’ operation for two variants.

Variant pow(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

rsh

Performs the ‘»’ operation for two variants.

Variant rsh(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

sub

Performs the ‘-’ operation for two variants.

Variant sub(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.

xor

Performs the XOR operation for two variants.

Variant xor(Variant value1, Variant value2)

  • value1: Variant - first operand for this operation.
  • value2: Variant - second operand for this operation.
  • returns: Variant - result variant object.