List of usage examples for com.google.common.collect ImmutableSet copyOf
public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements)
From source file:org.artifactory.model.xstream.security.ImmutableAclInfo.java
public ImmutableAclInfo(PermissionTargetInfo permissionTarget, Set<AceInfo> aces, String updatedBy) { this.permissionTarget = permissionTarget; this.aces = ImmutableSet.copyOf(aces); this.updatedBy = updatedBy; }
From source file:com.wrmsr.wava.java.lang.tree.declaration.JConstructor.java
public JConstructor(Set<JAccess> access, JName name, List<JArg> args, JBlock body) { this.access = ImmutableSet.copyOf(access); this.name = requireNonNull(name); this.args = ImmutableList.copyOf(args); this.body = requireNonNull(body); }
From source file:com.google.javascript.jscomp.DisambiguatePrivateProperties.java
DisambiguatePrivateProperties(AbstractCompiler compiler) { this.compiler = compiler; CodingConvention convention = this.compiler.getCodingConvention(); Collection<String> indirect = convention.getIndirectlyDeclaredProperties(); blacklist = ImmutableSet.copyOf(indirect); }
From source file:se.kth.climate.fast.netcdf.aligner.VariableAssignment.java
public static VariableAssignment assign(Set<String> infVariables, Set<String> dimensionVariables, Set<String> boundsVariables, Set<String> otherVariables, Set<String> constants) { return new VariableAssignment(ImmutableSet.copyOf(infVariables), ImmutableSet.copyOf(dimensionVariables), ImmutableSet.copyOf(boundsVariables), ImmutableSet.copyOf(otherVariables), ImmutableSet.copyOf(constants)); }
From source file:es.usc.citius.composit.core.model.impl.SignatureIO.java
public SignatureIO(Collection<E> inputs, Collection<E> outputs) { this.inputs = ImmutableSet.copyOf(inputs); this.outputs = ImmutableSet.copyOf(outputs); }
From source file:org.elasticsearch.common.inject.ProvisionException.java
/** * Creates a ConfigurationException containing {@code messages}. *//*from w w w .ja va 2 s .c o m*/ public ProvisionException(Iterable<Message> messages) { this.messages = ImmutableSet.copyOf(messages); checkArgument(!this.messages.isEmpty()); initCause(Errors.getOnlyCause(this.messages)); }
From source file:org.gradle.internal.component.external.model.FixedComponentArtifacts.java
public FixedComponentArtifacts(Iterable<? extends ComponentArtifactMetadata> artifacts) { this.artifacts = ImmutableSet.copyOf(artifacts); }
From source file:org.onosproject.net.intent.constraint.ObstacleConstraint.java
/** * Creates a new constraint that the specified device are not passed through. * @param obstacles devices not to be passed *//*from w w w .j av a 2 s . c o m*/ public ObstacleConstraint(DeviceId... obstacles) { this.obstacles = ImmutableSet.copyOf(obstacles); }
From source file:com.google.inject.ConfigurationException.java
/** Creates a ConfigurationException containing {@code messages}. */ public ConfigurationException(Iterable<Message> messages) { this.messages = ImmutableSet.copyOf(messages); initCause(Errors.getOnlyCause(this.messages)); }
From source file:org.fenixedu.academic.domain.accounting.EventTypes.java
public EventTypes(Set<EventType> types) { this.types = ImmutableSet.copyOf(types); }