Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 914 for put (0.15 sec)

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

        return Maps.newTreeMap();
      }
    
      public void testFirstAndLastKeyFilteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("apple", 2);
        unfiltered.put("banana", 6);
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 5);
    
        SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH);
        assertEquals("banana", filtered.firstKey());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            doc.put("key1", new String[] { "aaa", "bbb" });
            assertArrayEquals(new String[] { "aaa", "bbb" }, DocumentUtil.getValue(doc, "key1", String[].class));
            assertEquals(Arrays.asList("aaa", "bbb"), (List<String>) DocumentUtil.getValue(doc, "key1", List.class));
        }
    
        public void test_list() {
            Map<String, Object> doc = new HashMap<>();
            doc.put("key1", Arrays.asList("aaa", "bbb"));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

        return (ConcurrentMap<K, V>) super.getMap();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedPresent() {
        assertTrue(getMap().replace(k0(), v0(), v3()));
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedPresentUnchanged() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

        return Maps.newTreeMap();
      }
    
      public void testFirstAndLastKeyFilteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("apple", 2);
        unfiltered.put("banana", 6);
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 5);
    
        SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH);
        assertEquals("banana", filtered.firstKey());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java

        return (ConcurrentMap<K, V>) super.getMap();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutIfAbsent_supportedAbsent() {
        assertNull("putIfAbsent(notPresent, value) should return null", putIfAbsent(e3()));
        expectAdded(e3());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_supportedPresent() {
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

            TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR);
        multimap.put("google", 2);
        multimap.put("google", 6);
        multimap.put(null, 3);
        multimap.put(null, 1);
        multimap.put(null, 7);
        multimap.put("tree", 0);
        multimap.put("tree", null);
        return multimap;
      }
    
      /** Test that a TreeMultimap created from another uses the natural ordering. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

                defaultMap.put(FessConfig.API_GSA_RESPONSE_HEADERS, "");
                defaultMap.put(FessConfig.API_GSA_RESPONSE_EXCEPTION_INCLUDED, "false");
                defaultMap.put(FessConfig.API_DASHBOARD_RESPONSE_HEADERS, "");
                defaultMap.put(FessConfig.API_CORS_ALLOW_ORIGIN, "*");
                defaultMap.put(FessConfig.API_CORS_ALLOW_METHODS, "GET, POST, OPTIONS, DELETE, PUT");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Apr 11 02:34:53 GMT 2024
    - 459.2K bytes
    - Viewed (5)
  8. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        for (String row : elements) {
          table.put(row, 1, 'a');
          table.put(row, 2, 'b');
        }
      }
    
      private static void populateForColumnKeySet(
          Table<Integer, String, Character> table, String[] elements) {
        for (String column : elements) {
          table.put(1, column, 'a');
          table.put(2, column, 'b');
        }
      }
    
      private static void populateForValues(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
                .put("SOURCE_MAP", "SourceMap")
                .put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64")
                .put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")
                .put("SEC_WEBSOCKET_EXTENSIONS", "Sec-WebSocket-Extensions")
                .put("SEC_WEBSOCKET_KEY", "Sec-WebSocket-Key")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/FunctionsTest.java

        mJapaneseToInteger.put("Ichi", 1);
        mJapaneseToInteger.put("Ni", 2);
        mJapaneseToInteger.put("San", 3);
        Function<String, Integer> japaneseToInteger = Functions.forMap(mJapaneseToInteger);
    
        Map<Integer, String> mIntegerToSpanish = Maps.newHashMap();
        mIntegerToSpanish.put(1, "Uno");
        mIntegerToSpanish.put(3, "Tres");
        mIntegerToSpanish.put(4, "Cuatro");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top