All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.node.SetNodeStateResult Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.node;

import java.util.HashSet;
import java.util.Set;

@Deprecated
public class SetNodeStateResult
{
    private final Nodes updatedNodes;

    private SetNodeStateResult( Builder builder )
    {
        updatedNodes = Nodes.from( builder.updatedNodes );
    }

    public Nodes getUpdatedNodes()
    {
        return updatedNodes;
    }

    public static Builder create()
    {
        return new Builder();
    }

    public static final class Builder
    {
        private final Set updatedNodes = new HashSet<>();

        private Builder()
        {
        }

        public Builder addUpdatedNode( final Node updatedNodes )
        {
            this.updatedNodes.add( updatedNodes );
            return this;
        }

        public SetNodeStateResult build()
        {
            return new SetNodeStateResult( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy