Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 52 for setValue1 (0.38 seconds)

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

      @CollectionSize.Require(absent = ZERO)
      public void testSetValue() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
            break;
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSetValue() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
            break;
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ArrayTable.java

            public V getValue() {
              return ArrayMap.this.getValue(index);
            }
    
            @Override
            @ParametricNullness
            public V setValue(@ParametricNullness V value) {
              return ArrayMap.this.setValue(index, value);
            }
          };
        }
    
        @Override
        Iterator<Entry<K, V>> entryIterator() {
          return new AbstractIndexedListIterator<Entry<K, V>>(size()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/MapsTest.java

        }
        {
          Entry<Integer, String> entry = unmod.lowerEntry(2);
          assertThrows(UnsupportedOperationException.class, () -> entry.setValue("four"));
        }
        {
          Entry<Integer, String> entry = unmod.higherEntry(2);
          assertThrows(UnsupportedOperationException.class, () -> entry.setValue("four"));
        }
        {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            List<LabelType> labelTypeList = new ArrayList<>();
    
            LabelType labelType1 = new LabelType();
            labelType1.setName("Test Label 1");
            labelType1.setValue("test1");
            labelType1.setPermissions(new String[0]);
            labelType1.setVirtualHost("");
            // Locale is derived from value, not set directly
            labelType1.setIncludedPaths("/test.*");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/HashBiMapTest.java

          assertEquals(2 * i, (int) inverse.get(2 * i - 1));
        }
        Set<Entry<Integer, Integer>> entries = bimap.entrySet();
        for (Entry<Integer, Integer> entry : entries) {
          entry.setValue(entry.getValue() + 2 * N);
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * N + 2 * i - 1, (int) bimap.get(2 * i));
        }
      }
    
      public void testBiMapEntrySetIteratorRemove() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

                            dataMap.put(mapping.getValue1(), values);
                        } else if (Constants.MAPPING_TYPE_STRING.equalsIgnoreCase(mapping.getValue2())) {
                            final String joinedValue = StringUtils.join(values, ' ');
                            dataMap.put(mapping.getValue1(), joinedValue.trim());
                        } else if (values.length == 1) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        }
        int oldCount = backingMap.getValue(entryIndex);
        long newCount = (long) oldCount + (long) occurrences;
        checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount);
        backingMap.setValue(entryIndex, (int) newCount);
        size += occurrences;
        return oldCount;
      }
    
      @CanIgnoreReturnValue
      @Override
      public final int remove(@Nullable Object element, int occurrences) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals("test", map.entrySet().iterator().next().getValue());
        assertThrows(
            UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1));
      }
    
      public void testEntrySetToArrayMutationThrows() {
        map.putInstance(String.class, "test");
        @SuppressWarnings("unchecked") // Should get a CCE later if cast is wrong
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/app/service/CrawlingInfoServiceTest.java

            assertNull(param.getCreatedTime());
    
            param.setId("param-id");
            param.setCrawlingInfoId("crawling-info-id");
            param.setKey("docs_processed");
            param.setValue("1000");
            param.setCreatedTime(777777777L);
    
            assertEquals("param-id", param.getId());
            assertEquals("crawling-info-id", param.getCrawlingInfoId());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top