- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for ImmutableTable (0.1 sec)
-
android/guava/src/com/google/common/collect/ImmutableTable.java
* undocumented and subject to change. */ public static <R, C, V> ImmutableTable<R, C, V> copyOf( Table<? extends R, ? extends C, ? extends V> table) { if (table instanceof ImmutableTable) { @SuppressWarnings("unchecked") ImmutableTable<R, C, V> parameterizedTable = (ImmutableTable<R, C, V>) table; return parameterizedTable; } else { return copyOf(table.cellSet());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java
import com.google.common.annotations.GwtCompatible; import junit.framework.TestCase; /** * Tests {@link ImmutableTable} * * @author Gregory Kick */ @GwtCompatible @ElementTypesAreNonnullByDefault public abstract class AbstractImmutableTableTest extends TestCase { abstract Iterable<ImmutableTable<Character, Integer, String>> getTestInstances(); public final void testClear() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
public void testBuilder_withImmutableCell() { ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); assertEquals( ImmutableTable.of('a', 1, "foo"), builder.put(immutableCell('a', 1, "foo")).build()); } public void testBuilder_withImmutableCellAndNullContents() { ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java
new DenseImmutableTable<>(CELLS.asList(), ROW_SPACE, COLUMN_SPACE); @Override Iterable<ImmutableTable<Character, Integer, String>> getTestInstances() { return ImmutableList.<ImmutableTable<Character, Integer, String>>of(SPARSE, DENSE); } public void testCellSet() { for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { assertEquals(CELLS, testInstance.cellSet()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java
} public void testEqualsObject() { new EqualsTester() .addEqualityGroup(testTable, HashBasedTable.create(testTable)) .addEqualityGroup(ImmutableTable.of(), HashBasedTable.create()) .addEqualityGroup(HashBasedTable.create(ImmutableTable.of('A', 2, ""))) .testEquals(); } @GwtIncompatible // ArrayTable public void testEqualsObjectNullValues() { new EqualsTester()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
.put(BiMap.class, ImmutableBiMap.of()) .put(ImmutableBiMap.class, ImmutableBiMap.of()) .put(Table.class, ImmutableTable.of()) .put(ImmutableTable.class, ImmutableTable.of()) .put(RowSortedTable.class, Tables.unmodifiableRowSortedTable(TreeBasedTable.create())) .put(ClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 20.8K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
} } private static final class MockEquivalence extends Equivalence<Object> { final ImmutableTable.Builder<Object, Object, Boolean> equivalentExpectationsBuilder = ImmutableTable.builder(); final ImmutableMap.Builder<Object, Integer> hashExpectationsBuilder = ImmutableMap.builder(); ImmutableTable<Object, Object, Boolean> equivalentExpectations; ImmutableMap<Object, Integer> hashExpectations;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
} } private static final class MockEquivalence extends Equivalence<Object> { final ImmutableTable.Builder<Object, Object, Boolean> equivalentExpectationsBuilder = ImmutableTable.builder(); final ImmutableMap.Builder<Object, Integer> hashExpectationsBuilder = ImmutableMap.builder(); ImmutableTable<Object, Object, Boolean> equivalentExpectations; ImmutableMap<Object, Integer> hashExpectations;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512"); // From http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS = new ImmutableTable.Builder<String, SecretKey, HashFunction>() .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertTrue(ArbitraryInstances.get(SortedSetMultimap.class).isEmpty()); assertEquals(ImmutableTable.of(), ArbitraryInstances.get(Table.class)); assertEquals(ImmutableTable.of(), ArbitraryInstances.get(ImmutableTable.class)); assertTrue(ArbitraryInstances.get(RowSortedTable.class).isEmpty()); assertEquals(ImmutableBiMap.of(), ArbitraryInstances.get(BiMap.class));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.8K bytes - Viewed (0)