Class Update.BitwiseOperatorBuilder

java.lang.Object
org.springframework.data.mongodb.core.query.Update.BitwiseOperatorBuilder
Enclosing class:
Update

public static class Update.BitwiseOperatorBuilder extends Object
Since:
1.7
Author:
Christoph Strobl
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
  • Method Summary

    Modifier and Type
    Method
    Description
    and(int value)
    Updates to the result of a bitwise and operation between the current field value and the given integer value.
    and(long value)
    Updates to the result of a bitwise and operation between the current field value and the given long value.
    or(int value)
    Updates to the result of a bitwise or operation between the current field value and the given integer value.
    or(long value)
    Updates to the result of a bitwise or operation between the current field value and the given long value.
    xor(int value)
    Updates to the result of a bitwise xor operation between the current field value and the given integer value.
    xor(long value)
    Updates to the result of a bitwise xor operation between the current field value and the given long value.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • and

      public Update and(int value)
      Updates to the result of a bitwise and operation between the current field value and the given integer value.
      Parameters:
      value - the value to apply the bitwise and operation with.
      Returns:
      the Update object from which this builder was created.
      Since:
      5.0.3
    • and

      public Update and(long value)
      Updates to the result of a bitwise and operation between the current field value and the given long value.
      Parameters:
      value - the value to apply the bitwise and operation with.
      Returns:
      the Update object from which this builder was created.
    • or

      public Update or(int value)
      Updates to the result of a bitwise or operation between the current field value and the given integer value.
      Parameters:
      value - the value to apply the bitwise and operation with.
      Returns:
      the Update object from which this builder was created.
      Since:
      5.0.3
    • or

      public Update or(long value)
      Updates to the result of a bitwise or operation between the current field value and the given long value.
      Parameters:
      value - the value to apply the bitwise and operation with.
      Returns:
      the Update object from which this builder was created.
    • xor

      public Update xor(int value)
      Updates to the result of a bitwise xor operation between the current field value and the given integer value.
      Parameters:
      value - the value to apply the bitwise and operation with.
      Returns:
      the Update object from which this builder was created.
      Since:
      5.0.3
    • xor

      public Update xor(long value)
      Updates to the result of a bitwise xor operation between the current field value and the given long value.
      Parameters:
      value - the value to apply the bitwise and operation with.
      Returns:
      the Update object from which this builder was created.