Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ImmutableTable (0.16 sec)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java

     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class EmptyImmutableTableTest extends AbstractImmutableTableTest {
      private static final ImmutableTable<Character, Integer, String> INSTANCE = ImmutableTable.of();
    
      @Override
      Iterable<ImmutableTable<Character, Integer, String>> getTestInstances() {
        return ImmutableSet.of(INSTANCE);
      }
    
      public void testHashCode() {
        assertEquals(0, INSTANCE.hashCode());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.util.Map;
    
    /**
     * An implementation of {@link ImmutableTable} that holds a single cell.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    class SingletonImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
      final R singleRowKey;
      final C singleColumnKey;
      final V singleValue;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableTable.java

    import java.util.List;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An implementation of {@link ImmutableTable} holding an arbitrary number of cells.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class RegularImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
      RegularImmutableTable() {}
    
      abstract Cell<R, C, V> getCell(int iterationIndex);
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/SparseImmutableTable.java

    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class SparseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
      static final ImmutableTable<Object, Object, Object> EMPTY =
          new SparseImmutableTable<>(
              ImmutableList.<Cell<Object, Object, Object>>of(), ImmutableSet.of(), ImmutableSet.of());
    
      private final ImmutableMap<R, ImmutableMap<C, V>> rowMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SparseImmutableTable.java

    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class SparseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
      static final ImmutableTable<Object, Object, Object> EMPTY =
          new SparseImmutableTable<>(
              ImmutableList.<Cell<Object, Object, Object>>of(), ImmutableSet.of(), ImmutableSet.of());
    
      private final ImmutableMap<R, ImmutableMap<C, V>> rowMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top