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

com.enonic.xp.branch.Branches Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableSet;

import com.enonic.xp.annotation.PublicApi;
import com.enonic.xp.support.AbstractImmutableEntitySet;

@PublicApi
public final class Branches
    extends AbstractImmutableEntitySet
{
    private Branches( final ImmutableSet set )
    {
        super( set );
    }

    public static Branches from( final Branch... branches )
    {
        return new Branches( ImmutableSet.copyOf( branches ) );
    }

    public static Branches from( final Iterable branches )
    {
        return new Branches( ImmutableSet.copyOf( branches ) );
    }

    public static Branches empty()
    {
        return new Branches( ImmutableSet.of() );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy