Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SingletonImmutableTable (0.26 sec)

  1. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    class SingletonImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
      final R singleRowKey;
      final C singleColumnKey;
      final V singleValue;
    
      SingletonImmutableTable(R rowKey, C columnKey, V value) {
        this.singleRowKey = checkNotNull(rowKey);
        this.singleColumnKey = checkNotNull(columnKey);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

    import com.google.common.testing.EqualsTester;
    
    /**
     * Tests {@link SingletonImmutableTable}.
     *
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class SingletonImmutableTableTest extends AbstractImmutableTableTest {
      private final ImmutableTable<Character, Integer, String> testTable =
          new SingletonImmutableTable<>('a', 1, "blah");
    
      public void testHashCode() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableTable.java

      }
    
      /** Returns an immutable table containing a single cell. */
      public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, C columnKey, V value) {
        return new SingletonImmutableTable<>(rowKey, columnKey, value);
      }
    
      /**
       * Returns an immutable copy of the provided table.
       *
       * <p>The {@link Table#cellSet()} iteration order of the provided table determines the iteration
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top