List of usage examples for com.google.common.collect Sets newLinkedHashSet
public static <E> LinkedHashSet<E> newLinkedHashSet()
From source file:de.tu_berlin.dima.oligos.SparseSchema.java
public Set<String> emptySchemas() { Set<String> emptySchemas = Sets.newLinkedHashSet(); for (String schema : schemas()) { if (tablesIn(schema).isEmpty()) { emptySchemas.add(schema);// w w w. j a v a2s . c o m } } return emptySchemas; }
From source file:org.webtestingexplorer.config.selector.TagWebElementSelector.java
public TagWebElementSelector(boolean useXpath, String... tagsToSelect) { this.useXpath = useXpath; tags = Sets.newLinkedHashSet(); for (String tag : tagsToSelect) { tags.add(tag);//ww w . j ava 2 s . c o m } }
From source file:org.napile.idea.plugin.codeInsight.ImplementMethodsHandler.java
@Override protected Set<CallableMemberDescriptor> collectMethodsToGenerate(MutableClassDescriptor descriptor) { Set<CallableMemberDescriptor> missingImplementations = Sets.newLinkedHashSet(); OverrideResolver.collectMissingImplementations(descriptor, missingImplementations, missingImplementations); return missingImplementations; }
From source file:cc.recommenders.usages.AbstractUsage.java
/** * @return concatenation of paths of the underlying usage, which contains * each receiver callsite exactly once *//*from ww w . j ava2s .c o m*/ public Set<CallSite> getReceiverCallsites() { Set<CallSite> filtered = Sets.newLinkedHashSet(); for (CallSite site : getAllCallsites()) { boolean isReceiverCall = site.getKind().equals(CallSiteKind.RECEIVER); if (isReceiverCall) { filtered.add(site); } } return filtered; }
From source file:com.ebay.xcelite.column.ColumnsExtractor.java
public ColumnsExtractor(Class<?> type) { this.type = type; columns = Sets.newLinkedHashSet(); columnsOrdering(); }
From source file:org.obiba.mica.core.domain.DocumentSet.java
public Set<String> getIdentifiers() { return identifiers == null ? identifiers = Sets.newLinkedHashSet() : identifiers; }
From source file:org.gradle.api.internal.artifacts.result.DefaultComponentArtifactsResult.java
public Set<ArtifactResult> getArtifacts(Class<? extends Artifact> type) { Set<ArtifactResult> matching = Sets.newLinkedHashSet(); for (ArtifactResult artifactResult : artifactResults) { if (type.isAssignableFrom(artifactResult.getType())) { matching.add(artifactResult); }/*from w ww. j a v a 2 s . c o m*/ } return matching; }
From source file:org.jclouds.cloudwatch.domain.Metric.java
public Metric(String metricName, String namespace, @Nullable Set<Dimension> dimensions) { // Default to an empty set if (dimensions == null) { this.dimensions = Sets.newLinkedHashSet(); } else {//from ww w . ja v a2 s . co m this.dimensions = dimensions; } this.metricName = metricName; this.namespace = namespace; }
From source file:org.apache.james.utils.Configurables.java
public Configurables() { this.configurables = Sets.newLinkedHashSet(); }
From source file:org.apache.lens.server.query.collect.QueryCollectUtil.java
public static Set<QueryContext> getMockQueriesSet(final int reqNoOfMockQueries) { Set<QueryContext> mockQueries = Sets.newLinkedHashSet(); for (int i = 1; i <= reqNoOfMockQueries; ++i) { mockQueries.add(mock(QueryContext.class)); }//from ww w . j av a 2s.c om return mockQueries; }