List of usage examples for com.google.common.collect ImmutableSet of
static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)
From source file:com.hp.autonomy.frontend.find.core.beanconfiguration.ConfigFileConfiguration.java
@Bean public SimpleFilterProvider filterProvider() { final Set<String> set = ImmutableSet.of("indexProtocol", "indexPort", "serviceProtocol", "servicePort", "productType", "productTypeRegex", "indexErrorMessage", "plaintextPassword", "currentPassword", "fieldsInfo"); final SimpleBeanPropertyFilter.SerializeExceptFilter filter = new SimpleBeanPropertyFilter.SerializeExceptFilter( set);/*from w w w.ja v a 2s . co m*/ return new SimpleFilterProvider(ImmutableMap.of("configurationFilter", filter)); }