Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 389 for getValue2 (0.15 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

      public void testPutDuplicateValue() {
        List<Entry<K, V>> entries = copyToList(multimap().entries());
    
        for (Entry<K, V> entry : entries) {
          resetContainer();
    
          K k = entry.getKey();
          V v = entry.getValue();
    
          List<V> values = multimap().get(k);
          List<V> expectedValues = copyToList(values);
    
          assertTrue(multimap().put(k, v));
          expectedValues.add(v);
          assertGet(k, expectedValues);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java

          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
              return !"badkey".equals(entry.getKey()) && 55556 != entry.getValue();
            }
          };
    
      public MultimapsFilterEntriesAsMapTest() {
        super(true, true, false);
      }
    
      private Multimap<String, Integer> createMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/stream/StreamUtilTest.java

            Map<String, String> map = new HashMap<String, String>();
            map.put("key1", "value1");
            map.put("key2", "value2");
            StreamUtil.stream(map).of(s -> s.forEach(m -> assertEquals(map.get(m.getKey()), m.getValue())));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java

        for (Entry<K, V> entry : multimap.entries()) {
          assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue()));
          size++;
        }
        assertEquals(expectedSize, size);
    
        int size2 = 0;
        for (Entry<K, Collection<V>> entry2 : multimap.asMap().entrySet()) {
          size2 += entry2.getValue().size();
        }
        assertEquals(expectedSize, size2);
      }
    
      @CollectionSize.Require(ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                          Cell<String, Integer, Character> cell =
                              (Cell<String, Integer, Character>) element;
                          table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
                        }
                        return table.cellSet();
                      }
    
                      @Override
                      Table<String, Integer, Character> createTable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                          Cell<String, Integer, Character> cell =
                              (Cell<String, Integer, Character>) element;
                          table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
                        }
                        return table.cellSet();
                      }
    
                      @Override
                      Table<String, Integer, Character> createTable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. compat/maven-model/src/main/java/org/apache/maven/model/InputLocation.java

                    : location.getLocations().entrySet().stream()
                            .collect(Collectors.toMap(
                                    e -> e.getKey(),
                                    e -> e.getValue() == location ? this : new InputLocation(e.getValue())));
            this.importedFrom = location.getImportedFrom() != null ? new InputLocation(location.getImportedFrom()) : null;
        }
    
        public InputLocation(int lineNumber, int columnNumber) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CharSourceTester.java

        for (Entry<String, String> entry : TEST_STRINGS.entrySet()) {
          if (testAsByteSource) {
            suite.addTest(
                suiteForBytes(factory, entry.getValue().getBytes(UTF_8), name, entry.getKey(), true));
          } else {
            suite.addTest(suiteForString(factory, entry.getValue(), name, entry.getKey()));
          }
        }
        return suite;
      }
    
      static TestSuite suiteForBytes(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        Iterator<Entry<K, V>> iterator = multimap().entries().iterator();
        Entry<K, V> entry = iterator.next();
        K key = entry.getKey();
        V value = entry.getValue();
        multimap().removeAll(key);
        assertEquals(key, entry.getKey());
        assertEquals(value, entry.getValue());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top