Interface CommentedConfigurationNode

    • Method Detail

      • root

        static CommentedConfigurationNode root()
        Create a new empty root node.

        This node will use the default options

        A root node is always attached, and has no parent and an empty path.

        Returns:
        a new empty node
        Since:
        4.0.0
      • root

        static <E extends java.lang.Exception> CommentedConfigurationNode root​(CheckedConsumer<? super CommentedConfigurationNode,​E> action)
                                                                        throws E extends java.lang.Exception
        Create a new root node with the provided initializer.

        This node will use the default options

        A root node is always attached, and has no parent and an empty path.

        Type Parameters:
        E - thrown type
        Parameters:
        action - action to be applied to the newly created node
        Returns:
        a new initialized node
        Throws:
        E - when thrown from inner action
        E extends java.lang.Exception
        Since:
        4.0.0
      • root

        static CommentedConfigurationNode root​(ConfigurationOptions options)
        Create a new empty root node with the provided options.

        A root node is always attached, and has no parent and an empty path.

        Parameters:
        options - options to apply
        Returns:
        a new empty node
        Since:
        4.0.0
      • root

        static <E extends java.lang.Exception> CommentedConfigurationNode root​(ConfigurationOptions options,
                                                                               CheckedConsumer<? super CommentedConfigurationNode,​E> action)
                                                                        throws E extends java.lang.Exception
        Create a new root node with the provided options and initializer.

        A root node is always attached, and has no parent and an empty path.

        Type Parameters:
        E - thrown type
        Parameters:
        options - options to apply
        action - action to be applied to the newly created node
        Returns:
        a new initialized node
        Throws:
        E - when thrown from inner action
        E extends java.lang.Exception
        Since:
        4.0.0