List of usage examples for com.google.common.collect ImmutableSet of
@SuppressWarnings("unchecked") public static <E> ImmutableSet<E> of(E e1, E e2)
From source file:com.opengamma.strata.report.framework.expression.CurveCurrencyParameterSensitivityTokenEvaluator.java
@Override public Set<String> tokens(CurveCurrencyParameterSensitivity sensitivity) { return ImmutableSet.of(sensitivity.getCurrency().getCode().toLowerCase(Locale.ENGLISH), sensitivity.getCurveName().toString().toLowerCase(Locale.ENGLISH)); }
From source file:org.eclipse.che.api.factory.server.FactoryMessageBodyAdapter.java
@Override public Set<Class<?>> getTriggers() { return ImmutableSet.of(Factory.class, FactoryDto.class); }
From source file:com.opengamma.strata.report.framework.expression.CurrencyParameterSensitivityTokenEvaluator.java
@Override public Set<String> tokens(CurrencyParameterSensitivity sensitivity) { return ImmutableSet.of(sensitivity.getCurrency().getCode().toLowerCase(Locale.ENGLISH), sensitivity.getMarketDataName().getName().toLowerCase(Locale.ENGLISH)); }
From source file:com.nomsic.sid.Match.java
public Match(String recordId1, String recordId2, double similarityIndex) { this.similarityIndex = similarityIndex; this.records = ImmutableSet.of(recordId1, recordId2); }
From source file:com.nesscomputing.httpserver.log.log4j.Log4jRequestLogConfig.java
@Config("blacklist") @Default("/selftest, /application.wadl") public Set<String> getBlacklist() { return ImmutableSet.of("/selftest", "/application.wadl"); }
From source file:org.apache.hadoop.hive.ql.io.ORCFileStorageFormatDescriptor.java
@Override public Set<String> getNames() { return ImmutableSet.of(IOConstants.ORCFILE, IOConstants.ORC); }
From source file:producerstest.multibindings.MultibindingProducerModule.java
@Produces @ElementsIntoSet static Set<String> strs() { return ImmutableSet.of("bar1", "bar2"); }
From source file:org.apache.hadoop.hive.ql.io.ParquetFileStorageFormatDescriptor.java
@Override public Set<String> getNames() { return ImmutableSet.of(IOConstants.PARQUETFILE, IOConstants.PARQUET); }
From source file:org.graylog.plugins.nats.NatsInputPlugin.java
@Override public Collection<PluginModule> modules() { return ImmutableSet.of(new NatsInputPluginModule(), new NatsStreamingInputPluginModule()); }
From source file:auth.LoginForm.java
@Override public Set<MetaField<?>> fields() { return ImmutableSet.of(LOGIN_EMAIL, REDIRECT); }