Interface IVariantOperations
- All Known Implementing Classes:
AbstractVariantOperations
,TypeSafeVariantOperations
,TypeUnsafeVariantOperations
public interface IVariantOperations
Defines an interface for variant operations manager.
-
Method Summary
Modifier and TypeMethodDescriptionPerforms '+' operation for two variants.Performs AND operation for two variants.convert
(Variant value, VariantType newType) Converts variant to specified typePerforms '/' operation for two variants.Performs '=' operation for two variants.getElement
(Variant value1, Variant value2) Performs [] operation for two variants.Performs IN operation for two variants.Performs '<' operation for two variants.Performs '<=' operation for two variants.Performs << operation for two variants.Performs '%' operation for two variants.Performs '>' operation for two variants.Performs '>=' operation for two variants.Performs '*' operation for two variants.Performs unary '-' operation for a variant.Performs NOT operation for a variant.Performs '<>' operation for two variants.Performs OR operation for two variants.Performs '^' operation for two variants.Performs >> operation for two variants.Performs '-' operation for two variants.Performs XOR operation for two variants.
-
Method Details
-
convert
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
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
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
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
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
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
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
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
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
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
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
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
Performs NOT operation for a variant.- Parameters:
value
- The operand for this operation.- Returns:
- A result variant object.
-
negative
Performs unary '-' operation for a variant.- Parameters:
value
- The operand for this operation.- Returns:
- A result variant object.
-
equal
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
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
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
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
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
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
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
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
-