List of usage examples for com.google.common.collect Sets newHashSet
public static <E> HashSet<E> newHashSet(Iterator<? extends E> elements)
From source file:io.atomix.core.set.impl.DefaultDistributedSetService.java
@Override public void backup(BackupOutput output) { output.writeObject(Sets.newHashSet(collection)); output.writeObject(lockedElements); output.writeObject(transactions); }
From source file:io.joynr.android.test.AndroidRobolectricProxyBuilder.java
public AndroidRobolectricProxyBuilder(InitRuntimeTask runtimeInitTask, String providerDomain, Class<T> proxyInterface, UILogger uiLogger) { super(runtimeInitTask, Sets.newHashSet(providerDomain), proxyInterface, uiLogger); }
From source file:org.assertj.assertions.generator.description.converter.AnnotationConfiguration.java
public AnnotationConfiguration(Class<?>... includedAnnotations) { this.includedAnnotations = Sets.newHashSet(includedAnnotations); }
From source file:org.auraframework.util.type.converter.StringToHashSetConverter.java
@Override public HashSet<String> convert(String value) { List<String> splitList = AuraTextUtil.splitSimple(",", value); return Sets.newHashSet(splitList); }
From source file:com.thinkbiganalytics.auth.DefaultPrincipalAuthorityGranter.java
@Override public Set<String> grant(Principal principal) { return Sets.newHashSet(principal.getName()); }
From source file:com.google.gerrit.testutil.SetMatcher.java
public SetMatcher(Iterable<T> expected) { this.expected = Sets.newHashSet(expected); }
From source file:org.opendaylight.faas.fabric.vxlan.GatewayPort.java
public GatewayPort(IpPrefix ip, long vni, NodeId lsw, long vrf) { this.ip = ip; this.vni = vni; this.lsw = lsw; this.vrf = vrf; subips = Sets.newHashSet(IpAddressUtils.getIpAddress(ip)); }
From source file:cherry.foundation.validator.NoMarkupTagValidator.java
@Override public void initialize(NoMarkupTag annotation) { this.acceptable = Sets.newHashSet(annotation.acceptable()); }
From source file:org.franca.core.dsl.validation.internal.util.FrancaContractDirectedGraphDataSource.java
@Override public Set<FState> getAllNodes() { return Collections.unmodifiableSet(Sets.newHashSet(contract.getStateGraph().getStates())); }
From source file:com.music.model.ToneGroups.java
private ToneGroups(ToneType... toneTypes) { this.toneTypes = Sets.newHashSet(toneTypes); }