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

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

Introduction

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

Prototype

public static <R, C, V> ImmutableTable<R, C, V> copyOf(Table<? extends R, ? extends C, ? extends V> table) 

Source Link

Document

Returns an immutable copy of the provided table.

Usage

From source file:mod.steamnsteel.crafting.alloy.AlloyManager.java

public static ImmutableTable<ItemWrapper, ItemWrapper, IAlloyResult> getAlloys() {
    return ImmutableTable.copyOf(alloys);
}

From source file:org.immutables.fixture.encoding.defs.TableEncoding.java

@Encoding.Of
static <R, C, V> ImmutableTable<R, C, V> init(Table<? extends R, ? extends C, ? extends V> table) {
    return ImmutableTable.copyOf(table);
}

From source file:org.auraframework.impl.css.flavor.FlavorMappingImpl.java

public FlavorMappingImpl(Builder builder) {
    this.table = ImmutableTable.copyOf(builder.table);
}

From source file:org.auraframework.impl.css.flavor.FlavorOverrideLocatorImpl.java

public FlavorOverrideLocatorImpl(Builder builder) {
    this.table = ImmutableTable.copyOf(builder.table);
}

From source file:com.google.gerrit.server.ReviewerByEmailSet.java

private ReviewerByEmailSet(Table<ReviewerStateInternal, Address, Timestamp> table) {
    this.table = ImmutableTable.copyOf(table);
}

From source file:com.android.tools.perflib.vmtrace.MethodProfileData.java

private MethodProfileData(Builder b) {
    mPerThreadCumulativeStats = ImmutableMap.copyOf(b.mPerThreadCumulativeStats);
    mPerThreadStatsByCallee = ImmutableTable.copyOf(b.mPerThreadStatsByCallee);
    mPerThreadStatsByCaller = ImmutableTable.copyOf(b.mPerThreadStatsByCaller);
    mIsRecursive = b.mRecursive;// www .j  a  va2 s  . co m
}

From source file:org.asoem.greyfish.core.utils.EvaluatingMarkovChain.java

private EvaluatingMarkovChain(final ChainBuilder<S> builder) {
    this.markovMatrix = ImmutableTable.copyOf(builder.table);
}

From source file:org.sonar.api.batch.rule.internal.DefaultRules.java

DefaultRules(Collection<NewRule> newRules) {
    ImmutableListMultimap.Builder<String, Rule> builder = ImmutableListMultimap.builder();
    Table<String, String, List<Rule>> tableBuilder = HashBasedTable.create();

    for (NewRule newRule : newRules) {
        DefaultRule r = new DefaultRule(newRule);
        builder.put(r.key().repository(), r);
        addToTable(tableBuilder, r);//from  w w  w .j a v  a2  s.com
    }

    rulesByRepository = builder.build();
    rulesByRepositoryAndInternalKey = ImmutableTable.copyOf(tableBuilder);
}

From source file:org.opendaylight.groupbasedpolicy.dto.Policy.java

/**
 * @param ruleMap {@code null} means that created {@link Policy} equals {@link Policy#EMPTY}
 *//*from   w w w  . ja  va 2s  .c om*/
public Policy(@Nullable Table<EndpointConstraint, EndpointConstraint, List<RuleGroup>> ruleMap) {
    if (ruleMap == null) {
        this.ruleMap = EMPTY.getRuleMap();
    } else {
        this.ruleMap = ImmutableTable.copyOf(ruleMap);
    }
}

From source file:edu.mit.streamjit.impl.blob.DrainData.java

public DrainData(Map<Token, ? extends List<Object>> data, Table<Integer, String, Object> state) {
    ImmutableMap.Builder<Token, ImmutableList<Object>> dataBuilder = ImmutableMap.builder();
    for (Map.Entry<Token, ? extends List<Object>> e : data.entrySet())
        dataBuilder.put(e.getKey(), ImmutableList.copyOf(e.getValue()));
    this.data = dataBuilder.build();
    this.state = ImmutableTable.copyOf(state);
}