Interface IVariantOperations

All Known Implementing Classes:
AbstractVariantOperations, TypeSafeVariantOperations, TypeUnsafeVariantOperations

public interface IVariantOperations
Defines an interface for variant operations manager.
  • Method Details

    • convert

      Variant convert(Variant value, VariantType newType)
      Converts variant to specified type
      Parameters:
      value - A variant value to be converted.
      newType - A type of object to be returned.
      Returns:
      A converted Variant value.
    • add

      Variant add(Variant value1, Variant value2)
      Performs '+' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • sub

      Variant sub(Variant value1, Variant value2)
      Performs '-' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • mul

      Variant mul(Variant value1, Variant value2)
      Performs '*' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • div

      Variant div(Variant value1, Variant value2)
      Performs '/' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • mod

      Variant mod(Variant value1, Variant value2)
      Performs '%' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • pow

      Variant pow(Variant value1, Variant value2)
      Performs '^' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • and

      Variant and(Variant value1, Variant value2)
      Performs AND operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • or

      Variant or(Variant value1, Variant value2)
      Performs OR operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • xor

      Variant xor(Variant value1, Variant value2)
      Performs XOR operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • lsh

      Variant lsh(Variant value1, Variant value2)
      Performs << operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • rsh

      Variant rsh(Variant value1, Variant value2)
      Performs >> operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • not

      Variant not(Variant value)
      Performs NOT operation for a variant.
      Parameters:
      value - The operand for this operation.
      Returns:
      A result variant object.
    • negative

      Variant negative(Variant value)
      Performs unary '-' operation for a variant.
      Parameters:
      value - The operand for this operation.
      Returns:
      A result variant object.
    • equal

      Variant equal(Variant value1, Variant value2)
      Performs '=' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • notEqual

      Variant notEqual(Variant value1, Variant value2)
      Performs '<>' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • more

      Variant more(Variant value1, Variant value2)
      Performs '>' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • less

      Variant less(Variant value1, Variant value2)
      Performs '<' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • moreEqual

      Variant moreEqual(Variant value1, Variant value2)
      Performs '>=' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • lessEqual

      Variant lessEqual(Variant value1, Variant value2)
      Performs '<=' operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • in

      Variant in(Variant value1, Variant value2)
      Performs IN operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
    • getElement

      Variant getElement(Variant value1, Variant value2) throws Exception
      Performs [] operation for two variants.
      Parameters:
      value1 - The first operand for this operation.
      value2 - The second operand for this operation.
      Returns:
      A result variant object.
      Throws:
      Exception