本文整理匯總了Java中com.google.common.collect.ImmutableTable.of方法的典型用法代碼示例。如果您正苦於以下問題:Java ImmutableTable.of方法的具體用法?Java ImmutableTable.of怎麽用?Java ImmutableTable.of使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.common.collect.ImmutableTable
的用法示例。
在下文中一共展示了ImmutableTable.of方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testProvideEasterEggUrl
import com.google.common.collect.ImmutableTable; //導入方法依賴的package包/類
@Test
public void testProvideEasterEggUrl() {
ImmutableTable<String, String, String> eggs = ImmutableTable.of("easter", "egg", "redirect");
assertNull(module.provideEasterEggUrl(params, eggs));
params.put("easter", "egg");
assertEquals("redirect", module.provideEasterEggUrl(params, eggs));
}
示例2: generateImmutableTable
import com.google.common.collect.ImmutableTable; //導入方法依賴的package包/類
@Generates private static <R, C, V> ImmutableTable<R, C, V> generateImmutableTable(
R row, C column, V value) {
return ImmutableTable.of(row, column, value);
}
示例3: generateImmutableTable
import com.google.common.collect.ImmutableTable; //導入方法依賴的package包/類
@Generates
private static <R, C, V> ImmutableTable<R, C, V> generateImmutableTable(
R row, C column, V value) {
return ImmutableTable.of(row, column, value);
}
示例4: get
import com.google.common.collect.ImmutableTable; //導入方法依賴的package包/類
/**
* @return an immutable copy of the table for the specified security - the table can be empty
*/
public Table<LocalDate, String, TypedObject> get() {
return securityTable == null ? ImmutableTable.<LocalDate, String, TypedObject>of() : ImmutableTable.copyOf(
securityTable);
}
示例5: table
import com.google.common.collect.ImmutableTable; //導入方法依賴的package包/類
public static final <R, C, V> ImmutableTable<R, C, V> table(R rowKey, C columnKey, V value) { return ImmutableTable.of(rowKey, columnKey, value); }