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

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) 

Source Link

Document

Returns an unmodifiable set containing ten elements.

Usage

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));
}