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

com.enonic.xp.content.ContentDependencies Maven / Gradle / Ivy

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

import java.util.Collection;

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public class ContentDependencies
{
    private final Collection inbound;

    private final Collection outbound;

    private ContentDependencies( Builder builder )
    {
        this.inbound = builder.inboundDependencies;
        this.outbound = builder.outboundDependencies;
    }

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

    public Collection getInbound()
    {
        return inbound;
    }

    public Collection getOutbound()
    {
        return outbound;
    }

    public static final class Builder
    {
        private Collection outboundDependencies;

        private Collection inboundDependencies;

        private Builder()
        {
        }

        public Builder inboundDependencies( final Collection value )
        {
            this.inboundDependencies = value;
            return this;
        }

        public Builder outboundDependencies( final Collection value )
        {
            this.outboundDependencies = value;
            return this;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy