Example usage for com.google.common.collect ImmutableSet of

List of usage examples for com.google.common.collect ImmutableSet of

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSet of.

Prototype

@SuppressWarnings("unchecked")
    public static <E> ImmutableSet<E> of(E e1, E e2, E e3) 

Source Link

Usage

From source file:azkaban.jobs.ScriptJob.java

public ScriptJob(JobDescriptor desc) {
    super(new String[] { desc.getProps().getString(DEFAULT_EXECUTABLE_KEY),
            desc.getProps().getString(SCRIPT_KEY) }, desc,
            ImmutableSet.of(DEFAULT_EXECUTABLE_KEY, SCRIPT_KEY, JobDescriptor.JOB_TYPE));
}

From source file:org.apache.aurora.scheduler.resources.ResourceTestUtil.java

public static IResourceAggregate aggregate(double numCpus, long ramMb, long diskMb) {
    return IResourceAggregate.build(new ResourceAggregate(numCpus, ramMb, diskMb,
            ImmutableSet.of(numCpus(numCpus), ramMb(ramMb), diskMb(diskMb))));
}

From source file:azkaban.jobExecutor.ScriptJob.java

public ScriptJob(String jobid, Props sysProps, Props jobProps, Logger log) {
    super(jobid, new String[] { jobProps.getString(DEFAULT_EXECUTABLE_KEY), jobProps.getString(SCRIPT_KEY) },
            sysProps, jobProps, log, ImmutableSet.of(DEFAULT_EXECUTABLE_KEY, SCRIPT_KEY, JOB_TYPE));
}

From source file:org.projectbuendia.client.diagnostics.DiagnosticsModule.java

@Provides
@Singleton//from w w  w  .  j a v a 2  s .c o  m
ImmutableSet<HealthCheck> provideHealthChecks(Application application,
        OpenMrsConnectionDetails connectionDetails, AppSettings settings) {
    return ImmutableSet.of(new WifiHealthCheck(application),
            new BuendiaApiHealthCheck(application, connectionDetails),
            new UpdateServerHealthCheck(application, settings));
}

From source file:se.sics.kompics.network.netty.NettyInit.java

public NettyInit(Address self) {
    this(self, 0, ImmutableSet.of(Transport.TCP, Transport.UDP, Transport.UDT));
}