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

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

Introduction

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

Prototype

public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) 

Source Link

Usage

From source file:com.palantir.atlasdb.table.description.ExplicitRowNamePartitioner.java

public ExplicitRowNamePartitioner(ValueType valueType, Iterable<String> values) {
    this.valueType = valueType;
    this.values = ImmutableSet.copyOf(values);
}

From source file:ru.codeinside.calendar.BusinessCalendarDueDateCalculator.java

/**
 * ? ? ? /*w  ww  .  ja v  a  2s  . c o  m*/
 *
 * @param workedDays    
 * @param holidays      
 */
public BusinessCalendarDueDateCalculator(Set<Date> workedDays, Set<Date> holidays) {
    this.workedDays = ImmutableSet.copyOf(workedDays);
    this.holidays = ImmutableSet.copyOf(holidays);
}

From source file:org.opendaylight.aaa.shiro.moon.MoonPrincipal.java

public MoonPrincipal(final String username, final String domain, final String userId, final Set<String> roles,
        final String token) {

    this.username = username;
    this.domain = domain;
    this.userId = userId;
    this.roles = ImmutableSet.copyOf(roles);
    this.token = token;
}

From source file:org.gradle.api.internal.changedetection.state.IgnoringResourceFilter.java

public IgnoringResourceFilter(Set<String> ignores) {
    this.ignores = ImmutableSet.copyOf(ignores);
    ImmutableSet.Builder<PathMatcher> builder = ImmutableSet.builder();
    for (String ignore : ignores) {
        PathMatcher matcher = PatternMatcherFactory.compile(true, ignore);
        builder.add(matcher);/*from   www  .  j  a v a2  s  . com*/
    }
    this.ignoreMatchers = builder.build();
}

From source file:com.github.jcustenborder.kafka.connect.utils.config.validators.ValidURI.java

public ValidURI(String... schemes) {
    validSchemes = ImmutableSet.copyOf(schemes);
}

From source file:com.facebook.buck.testutil.TargetGraphFactory.java

public static TargetGraph newInstance(TargetNode<?, ?>... nodes) {
    return newInstance(ImmutableSet.copyOf(nodes));
}

From source file:com.b2international.snowowl.snomed.datastore.id.action.AbstractEnumeratedIdAction.java

public AbstractEnumeratedIdAction(final Set<String> componentIds) {
    this.componentIds = ImmutableSet.copyOf(componentIds);
}

From source file:com.github.steveash.typedconfig.resolver.type.container.SetValueResolverFactory.java

@Override
protected Object makeReturnValueFrom(Collection<Object> containedValues, ConfigBinding binding) {
    return ImmutableSet.copyOf(containedValues);
}

From source file:se.softhouse.jargo.stringparsers.custom.LimitedKeyParser.java

public LimitedKeyParser(String... validKeys) {
    super(stringParser());
    this.validKeys = ImmutableSet.copyOf(validKeys);
}

From source file:us.physion.ovation.ui.editor.AbstractDataVisualization.java

public AbstractDataVisualization(Iterable<? extends OvationEntity> entities) {
    this.entities = ImmutableSet.copyOf(entities);
}