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

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

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

import com.google.common.collect.ImmutableList;

import com.enonic.xp.support.AbstractImmutableEntityList;

public class NodeVersions
    extends AbstractImmutableEntityList
{
    private NodeVersions( final Builder builder )
    {
        super( builder.nodeVersions.build() );
    }

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

    public static class Builder
    {
        private final ImmutableList.Builder nodeVersions = ImmutableList.builder();

        public Builder add( final NodeVersion nodeVersion )
        {
            this.nodeVersions.add( nodeVersion );
            return this;
        }

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy