Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 336 for getValue (0.5 sec)

  1. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

      }
    
      // https://youtrack.jetbrains.com/issue/KT-58242/. Crash when getValue result (null) is unboxed
      @J2ktIncompatible
      public void testToTableNullValues() {
        Collector<Cell<String, String, Integer>, ?, Table<String, String, Integer>> collector =
            TableCollectors.toTable(
                Cell::getRowKey,
                Cell::getColumnKey,
                Cell::getValue,
                () -> {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                            @Override
                            public String setValue(String value) {
                              checkNotNull(value);
                              return next.setValue(value);
                            }
    
                            @Override
                            public String getValue() {
                              return next.getValue();
                            }
    
                            @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMapValues.java

          @Override
          public boolean hasNext() {
            return entryItr.hasNext();
          }
    
          @Override
          public V next() {
            return entryItr.next().getValue();
          }
        };
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return object != null && Iterators.contains(iterator(), object);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertSame(entry.getValue(), cache.asMap().putIfAbsent(entry.getKey(), newValue));
            Object newKey = new Object();
            assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue()));
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey()));
            assertEquals(entry.getValue(), cache.getUnchecked(newKey));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      protected final V v0() {
        return e0().getValue();
      }
    
      protected final K k1() {
        return e1().getKey();
      }
    
      protected final V v1() {
        return e1().getValue();
      }
    
      protected final K k2() {
        return e2().getKey();
      }
    
      protected final V v2() {
        return e2().getValue();
      }
    
      protected final K k3() {
        return e3().getKey();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TableCollectors.java

                    mergeFunction),
            (table1, table2) -> {
              for (Table.Cell<R, C, V> cell2 : table2.cellSet()) {
                mergeTables(
                    table1, cell2.getRowKey(), cell2.getColumnKey(), cell2.getValue(), mergeFunction);
              }
              return table1;
            });
      }
    
      private static final class ImmutableTableCollectorState<R, C, V> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/LinkedListMultimap.java

       * multimap, {@link Entry#getValue} returns the value from the multimap, which may change over
       * time, and {@link Entry#setValue} modifies that value. Removing the mapping from the multimap
       * does not alter the value returned by {@code getValue()}, though a subsequent {@code setValue()}
       * call won't update the multimap but will lead to a revised value being returned by {@code
       * getValue()}.
       */
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertEquals(null, entry.getKey());
        assertThat(entry.getValue()).containsExactly(7, 3, 1);
        entry = iterator.next();
        assertEquals("tree", entry.getKey());
        assertThat(entry.getValue()).containsExactly(null, 0);
        entry = iterator.next();
        assertEquals("google", entry.getKey());
        assertThat(entry.getValue()).containsExactly(6, 2);
      }
    
      public void testOrderedEntries() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeRangeMap.java

          Range<K> range, V value, @CheckForNull Entry<Cut<K>, RangeMapEntry<K, V>> entry) {
        if (entry != null
            && entry.getValue().getKey().isConnected(range)
            && entry.getValue().getValue().equals(value)) {
          return range.span(entry.getValue().getKey());
        }
        return range;
      }
    
      @Override
      public void putAll(RangeMap<K, ? extends V> rangeMap) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableRangeMap.java

        ImmutableList.Builder<V> valuesBuilder = new ImmutableList.Builder<>(map.size());
        for (Entry<Range<K>, ? extends V> entry : map.entrySet()) {
          rangesBuilder.add(entry.getKey());
          valuesBuilder.add(entry.getValue());
        }
        return new ImmutableRangeMap<>(rangesBuilder.build(), valuesBuilder.build());
      }
    
      /** Returns a new builder for an immutable range map. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
Back to top