Interface MapContextVariables

    • Method Detail

      • get

        @Nullable
        Object get​(@NotNull
                   String name)
        Specified by:
        get in interface ContextVariables
        Parameters:
        name - the name of the variable
        Returns:
        the variable stored or null is the variable with the name cannot be found.
      • remove

        Object remove​(@NotNull
                      String name)
        Removes variable with the name from the backing map
        Parameters:
        name - name of the variable to be removed
        Returns:
        previous value associated with specified name, or null if there was no mapping for name.
      • put

        @Nullable
        Object put​(@NotNull
                   String name,
                   @NotNull
                   Object value)
        Adds a variable to the backing map
        Parameters:
        name - name of the variable to add
        value - value of the variable
        Returns:
        previous value associated with specified name, or null if there was no mapping for name
      • putAll

        void putAll​(Map<String,​Object> fromMap)
        Adds multiple variables to the backing map
        Parameters:
        fromMap - the map to add variables form
      • size

        int size()
        Description copied from interface: ContextVariables
        Returns the number of variables in this variables provider. This is the size of the map returned by getAll method.
        Specified by:
        size in interface ContextVariables
        Returns:
        the size of the backing map