Class Parameters

    • Method Detail

      • fromNode

        public static Parameters fromNode​(ObjectNode node)
                                   throws RuleError
        Creates a Parameters instance from the given Node information.
        Parameters:
        node - the node to deserialize.
        Returns:
        the created Parameters.
        Throws:
        RuleError
      • writeToScope

        public void writeToScope​(Scope<Type> scope)
        Writes the parameters in this collection to the given scope.
        Parameters:
        scope - the scope
      • get

        public java.util.Optional<Parameter> get​(Identifier name)
        Gets the parameter for the given name.
        Returns:
        returns an optional containing the parameter if present, empty otherwise.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • iterator

        public java.util.Iterator<Parameter> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Parameter>
      • forEach

        public void forEach​(java.util.function.Consumer<? super Parameter> action)
        Specified by:
        forEach in interface java.lang.Iterable<Parameter>
      • spliterator

        public java.util.Spliterator<Parameter> spliterator()
        Specified by:
        spliterator in interface java.lang.Iterable<Parameter>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object