Interface DataContainer

All Superinterfaces:
DataView

public interface DataContainer extends DataView
Represents a data structure that contains data. A DataContainer is an object that can be considered a root DataView.
  • Method Details

    • createNew

      static DataContainer createNew()
      Returns:
      A new data container
    • createNew

      static DataContainer createNew(DataView.SafetyMode safety)
      Creates a new DataContainer with the provided DataView.SafetyMode.
      Parameters:
      safety - The safety mode to use
      Returns:
      A new data container with the provided safety mode
      See Also:
    • set

      DataContainer set(DataQuery path, Object value)
      Description copied from interface: DataView
      Sets the given Object value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, String value)
      Description copied from interface: DataView
      Sets the given String value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the string to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, boolean value)
      Description copied from interface: DataView
      Sets the given boolean value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the boolean to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, byte value)
      Description copied from interface: DataView
      Sets the given byte value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the byte to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, short value)
      Description copied from interface: DataView
      Sets the given short value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the short to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, int value)
      Description copied from interface: DataView
      Sets the given int value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the int to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, long value)
      Description copied from interface: DataView
      Sets the given long value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the long to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, float value)
      Description copied from interface: DataView
      Sets the given float value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the float to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(DataQuery path, double value)
      Description copied from interface: DataView
      Sets the given double value according to the given path relative to this DataView's path.
      Specified by:
      set in interface DataView
      Parameters:
      path - The path of the double to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, Object value)
      Description copied from interface: DataView
      Sets the given Object value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, String value)
      Description copied from interface: DataView
      Sets the given String value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, boolean value)
      Description copied from interface: DataView
      Sets the given boolean value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, byte value)
      Description copied from interface: DataView
      Sets the given byte value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, short value)
      Description copied from interface: DataView
      Sets the given short value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, int value)
      Description copied from interface: DataView
      Sets the given int value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, long value)
      Description copied from interface: DataView
      Sets the given long value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, float value)
      Description copied from interface: DataView
      Sets the given float value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • set

      default DataContainer set(String key, double value)
      Description copied from interface: DataView
      Sets the given double value to this DataView's key.
      Specified by:
      set in interface DataView
      Parameters:
      key - The key of the object to set
      value - The value of the data
      Returns:
      This view, for chaining
    • remove

      DataContainer remove(DataQuery path)
      Description copied from interface: DataView
      Removes the data associated to the given path relative to this DataView's path.

      Path can not be empty, to remove this DataView, call the associated parent to remove this views name.

      Specified by:
      remove in interface DataView
      Parameters:
      path - The path of data to remove
      Returns:
      This view, for chaining