Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 318 for containsKey (0.29 seconds)

  1. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

            map = null;
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testContainsKey() throws Exception {
            assertThat(map.containsKey("ONE"), is(true));
            assertThat(map.containsKey("one"), is(true));
            assertThat(map.containsKey("onex"), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

            if (!jApiMethod.getName().startsWith("getIs")) {
                return false;
            }
            String methodName = "get" + jApiMethod.getName().substring(5);
            return currentMethods.containsKey(AccessorKey.ofMethodWithSameSignatureButNewName(methodName, jApiMethod));
        }
    
        private static boolean isCurrentGetterThatReplacesBooleanIsGetter(JApiMethod jApiMethod, Map<AccessorKey, UpgradedProperty> currentMethods) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/util/ScrollOperationHelperTest.java

            assertEquals(3, results.size());
    
            // Verify we can access the source data
            for (Map<String, Object> result : results) {
                assertTrue(result.containsKey("name"));
                assertTrue(result.containsKey("value"));
            }
        }
    
        @Test
        public void testScrollSearch_customAccumulator() {
            createTestIndex();
            indexDocuments(5);
            runner.refresh();
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 7K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/LanguageHelper.java

                if (language == null) {
                    return;
                }
            }
    
            for (final String f : langFields) {
                final String lf = f + "_" + language;
                if (doc.containsKey(f) && !doc.containsKey(lf)) {
                    doc.put(lf, doc.get(f));
                    if (logger.isDebugEnabled()) {
                        logger.debug("add {} field", lf);
                    }
                }
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        assertEquals(Integer.valueOf(2), map.get("foo"));
        assertFalse(map.containsKey("bar"));
      }
    
      public void testReplaceConditional() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertFalse(map.replace("foo", 2, 3));
        assertFalse(map.replace("bar", 1, 2));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertFalse(map.containsKey("bar"));
        assertTrue(map.replace("foo", 1, 4));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/util/ParameterUtilTest.java

            assertTrue(result.containsKey(ConfigName.CONFIG));
            assertTrue(result.containsKey(ConfigName.CLIENT));
            assertTrue(result.containsKey(ConfigName.XPATH));
            assertTrue(result.containsKey(ConfigName.META));
            assertTrue(result.containsKey(ConfigName.VALUE));
            assertTrue(result.containsKey(ConfigName.SCRIPT));
            assertTrue(result.containsKey(ConfigName.FIELD));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/it/admin/SuggestTests.java

            final Map<String, Object> res = JsonPath.from(response).getMap("response.setting");
            assertTrue(res.containsKey("total_words_num"));
            assertTrue(res.containsKey("document_words_num"));
            assertTrue(res.containsKey("query_words_num"));
            assertEquals(Integer.valueOf(0), JsonPath.from(response).get("response.status"));
        }
    
        @Override
        @AfterEach
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  8. guava/src/com/google/common/cache/LocalCache.java

        segmentFor(hash).refresh(key, hash, defaultLoader, false);
      }
    
      @Override
      public boolean containsKey(@Nullable Object key) {
        // does not impact recency ordering
        if (key == null) {
          return false;
        }
        int hash = hash(key);
        return segmentFor(hash).containsKey(key, hash);
      }
    
      @Override
      public boolean containsValue(@Nullable Object value) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

            UnsupportedOperationException.class,
            () -> multimapView.replaceValues("foo", Collections.<Integer>emptySet()));
        multimapView.remove("bar", 2);
        assertFalse(multimapView.containsKey("bar"));
        assertFalse(map.containsKey("bar"));
        assertEquals(map.keySet(), multimapView.keySet());
        assertEquals(map.keySet(), multimapView.keys().elementSet());
        assertThat(multimapView.keys()).contains("foo");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java

            if (labels != null && !labels.isEmpty()) {
                Map<String, Object> firstLabel = labels.get(0);
                assertTrue(firstLabel.containsKey("label"), "Label should have 'label' property");
                assertTrue(firstLabel.containsKey("value"), "Label should have 'value' property");
            }
        }
    
        private static String createLabel(final String name, final String value) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
Back to Top