com.enonic.xp.node.LoadNodeResult Maven / Gradle / Ivy
package com.enonic.xp.node;
public class LoadNodeResult
{
private final Node node;
private LoadNodeResult( final Builder builder )
{
node = builder.node;
}
public Node getNode()
{
return node;
}
public static Builder create()
{
return new Builder();
}
public static final class Builder
{
private Node node;
private Builder()
{
}
public Builder node( final Node val )
{
node = val;
return this;
}
public LoadNodeResult build()
{
return new LoadNodeResult( this );
}
}
}