Class Update.BitwiseOperatorBuilder
java.lang.Object
org.springframework.data.mongodb.core.query.Update.BitwiseOperatorBuilder
- Enclosing class:
- Update
- Since:
- 1.7
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBitwiseOperatorBuilder(Update reference, String key) Creates a newUpdate.BitwiseOperatorBuilder. -
Method Summary
Modifier and TypeMethodDescriptionand(int value) Updates to the result of a bitwiseandoperation between the current field value and the given integervalue.and(long value) Updates to the result of a bitwiseandoperation between the current field value and the given longvalue.or(int value) Updates to the result of a bitwiseoroperation between the current field value and the given integervalue.or(long value) Updates to the result of a bitwiseoroperation between the current field value and the given longvalue.xor(int value) Updates to the result of a bitwisexoroperation between the current field value and the given integervalue.xor(long value) Updates to the result of a bitwisexoroperation between the current field value and the given longvalue.
-
Constructor Details
-
BitwiseOperatorBuilder
Creates a newUpdate.BitwiseOperatorBuilder.- Parameters:
reference- must not be nullkey- must not be null
-
-
Method Details
-
and
Updates to the result of a bitwiseandoperation between the current field value and the given integervalue.- Parameters:
value- the value to apply the bitwise and operation with.- Returns:
- the
Updateobject from which this builder was created. - Since:
- 4.5.9
-
and
Updates to the result of a bitwiseandoperation between the current field value and the given longvalue.- Parameters:
value- the value to apply the bitwise and operation with.- Returns:
- the
Updateobject from which this builder was created.
-
or
Updates to the result of a bitwiseoroperation between the current field value and the given integervalue.- Parameters:
value- the value to apply the bitwise and operation with.- Returns:
- the
Updateobject from which this builder was created. - Since:
- 4.5.9
-
or
Updates to the result of a bitwiseoroperation between the current field value and the given longvalue.- Parameters:
value- the value to apply the bitwise and operation with.- Returns:
- the
Updateobject from which this builder was created.
-
xor
Updates to the result of a bitwisexoroperation between the current field value and the given integervalue.- Parameters:
value- the value to apply the bitwise and operation with.- Returns:
- the
Updateobject from which this builder was created. - Since:
- 4.5.9
-
xor
Updates to the result of a bitwisexoroperation between the current field value and the given longvalue.- Parameters:
value- the value to apply the bitwise and operation with.- Returns:
- the
Updateobject from which this builder was created.
-