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
ModifierConstructorDescriptionprotected
BitwiseOperatorBuilder
(Update reference, String key) Creates a newUpdate.BitwiseOperatorBuilder
. -
Method Summary
Modifier and TypeMethodDescriptionand
(long value) Updates to the result of a bitwise and operation between the current value and the given one.or
(long value) Updates to the result of a bitwise or operation between the current value and the given one.xor
(long value) Updates to the result of a bitwise xor operation between the current value and the given one.
-
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 bitwise and operation between the current value and the given one.- Parameters:
value
-- Returns:
- never null.
-
or
Updates to the result of a bitwise or operation between the current value and the given one.- Parameters:
value
-- Returns:
- never null.
-
xor
Updates to the result of a bitwise xor operation between the current value and the given one.- Parameters:
value
-- Returns:
- never null.
-