Enum BuilderToken.UPDATEACTION

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADD
      Add one element (or each element of a list) if not already in the list
      $add : { name : [ value, value, ...
      INC
      increment one field named 'name' with default 1 or value
      $inc : { name : value }
      MAX
      set one field named 'name' with maximum value of current value and given value
      $max : { name : value }
      MIN
      set one field named 'name' with minimum value of current value and given value
      $min : { name : value }
      POP
      Remove n element from a list from the end (1) or the beginning (-1)
      $pop : { name : -1/1 }
      PULL
      Remove one specific element from a list or each element of a list
      $pull : { name : [ value, value, ...
      PUSH
      Add one element at the end of a list value, or each element of a list
      $push : { name : [ value, value, ...
      RENAME
      rename one field named 'name' to 'newname'
      $rename : { name : newname }
      SET
      $set : { name : value, name : value, ...
      SETREGEX
      $setregex : { name : value, name : value, name : value }
      UNSET
      $unset : [ name, name, ...
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String exactToken()  
      static BuilderToken.UPDATEACTION valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BuilderToken.UPDATEACTION[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • INC

        public static final BuilderToken.UPDATEACTION INC
        increment one field named 'name' with default 1 or value
        $inc : { name : value }
      • MIN

        public static final BuilderToken.UPDATEACTION MIN
        set one field named 'name' with minimum value of current value and given value
        $min : { name : value }
      • MAX

        public static final BuilderToken.UPDATEACTION MAX
        set one field named 'name' with maximum value of current value and given value
        $max : { name : value }
      • RENAME

        public static final BuilderToken.UPDATEACTION RENAME
        rename one field named 'name' to 'newname'
        $rename : { name : newname }
      • PUSH

        public static final BuilderToken.UPDATEACTION PUSH
        Add one element at the end of a list value, or each element of a list
        $push : { name : [ value, value, ... ] }
      • PULL

        public static final BuilderToken.UPDATEACTION PULL
        Remove one specific element from a list or each element of a list
        $pull : { name : [ value, value, ... ] }
      • ADD

        public static final BuilderToken.UPDATEACTION ADD
        Add one element (or each element of a list) if not already in the list
        $add : { name : [ value, value, ... ] }
      • POP

        public static final BuilderToken.UPDATEACTION POP
        Remove n element from a list from the end (1) or the beginning (-1)
        $pop : { name : -1/1 }
    • Method Detail

      • values

        public static BuilderToken.UPDATEACTION[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BuilderToken.UPDATEACTION c : BuilderToken.UPDATEACTION.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BuilderToken.UPDATEACTION valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • exactToken

        public final java.lang.String exactToken()
        Returns:
        the exact token