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

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

The newest version!
package com.enonic.xp.node;

import java.util.Objects;

public final class DeleteNodeResult
{
    private final NodeBranchEntries nodeBranchEntries;

    private DeleteNodeResult( final Builder builder )
    {
        this.nodeBranchEntries = Objects.requireNonNullElse( builder.nodeBranchEntries, NodeBranchEntries.empty() );
    }

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

    public NodeBranchEntries getNodeBranchEntries()
    {
        return nodeBranchEntries;
    }

    public static class Builder
    {

        private NodeBranchEntries nodeBranchEntries;

        private Builder()
        {
        }

        public Builder nodeBranchEntries( final NodeBranchEntries nodeBranchEntries )
        {
            this.nodeBranchEntries = nodeBranchEntries;
            return this;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy