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

public static <E> ImmutableSet<E> of(E element) 

Source Link

Usage

From source file:com.facebook.buck.apple.graphql.GraphQLDataBuilder.java

protected GraphQLDataBuilder(BuildTarget target) {
    super(new GraphQLDataDescription(new GraphQLConfig(new FakeBuckConfig(
            ImmutableMap.<String, Map<String, String>>of("graphql",
                    ImmutableMap.of("model-generator", "model-generator")),
            new FakeProjectFilesystem(ImmutableSet.of(Paths.get("model-generator")))))), target);
}

From source file:dagger.internal.codegen.MultibindingsProcessingStep.java

@Override
public Set<? extends Class<? extends Annotation>> annotations() {
    return ImmutableSet.of(Multibindings.class);
}

From source file:com.opengamma.financial.analytics.model.forex.AbstractForexSpotRateMarketDataFunction.java

@Override
public Set<ComputedValue> execute(final FunctionExecutionContext executionContext, final FunctionInputs inputs,
        final ComputationTarget target, final Set<ValueRequirement> desiredValues) {
    final ComputedValue inputValue = Iterables.getOnlyElement(inputs.getAllValues());
    final ValueSpecification outputSpec = new ValueSpecification(ValueRequirementNames.SPOT_RATE,
            target.toSpecification(), createValueProperties().get());
    return ImmutableSet.of(new ComputedValue(outputSpec, inputValue.getValue()));
}