com.enonic.xp.service.ServiceDescriptors Maven / Gradle / Ivy
The newest version!
package com.enonic.xp.service;
import com.google.common.collect.ImmutableList;
import com.enonic.xp.support.AbstractImmutableEntityList;
public final class ServiceDescriptors
extends AbstractImmutableEntityList
{
private ServiceDescriptors( final ImmutableList list )
{
super( list );
}
public static ServiceDescriptors empty()
{
return new ServiceDescriptors( ImmutableList.of() );
}
public static ServiceDescriptors from( final ServiceDescriptor... descriptors )
{
return from( ImmutableList.copyOf( descriptors ) );
}
public static ServiceDescriptors from( final Iterable descriptors )
{
return new ServiceDescriptors( ImmutableList.copyOf( descriptors ) );
}
}