Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,560 for Map (0.14 sec)

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

       *
       * @see #assertMoreInvariants
       * @param map the map to check.
       */
      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  2. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(map.isEmpty(), is(false));
            assertThat(map.get(Foo.class.getTypeParameters()[0]), is(sameClass(Object.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testGenericMethod() throws Exception {
            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Fuga.class);
            assertThat(map, is(notNullValue()));
            assertThat(map.isEmpty(), is(true));
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        assertFalse(map.remove("bar", 1));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertTrue(map.remove("foo", 1));
        assertTrue(map.isEmpty());
      }
    
      public void testReplace() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertEquals(Integer.valueOf(1), map.replace("foo", 2));
        assertNull(map.replace("bar", 3));
        assertEquals(Integer.valueOf(2), map.get("foo"));
        assertFalse(map.containsKey("bar"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

        @Override
        protected final Map<String, String> create(Entry<String, String>[] entries) {
          HashMap<String, String> map = Maps.newHashMap();
          for (Entry<String, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return wrap(map);
        }
    
        abstract Map<String, String> wrap(HashMap<String, String> map);
      }
    
      private static TestSuite wrappedHashMapTests(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker());
    
        assertSame(Strength.STRONG, map.keyStrength());
        assertSame(Strength.STRONG, map.valueStrength());
        assertSame(map.keyStrength().defaultEquivalence(), map.keyEquivalence);
        assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence());
    
        assertThat(map.entryHelper)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker());
    
        assertSame(Strength.STRONG, map.keyStrength());
        assertSame(Strength.STRONG, map.valueStrength());
        assertSame(map.keyStrength().defaultEquivalence(), map.keyEquivalence);
        assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence());
    
        assertThat(map.entryHelper)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

        private final AtomicBoolean setUpRan;
    
        CheckSetUpInvocationHandler(Map<String, String> map, AtomicBoolean setUpRan) {
          this.map = map;
          this.setUpRan = setUpRan;
        }
    
        @Override
        public Object invoke(Object target, Method method, Object[] args) throws Throwable {
          assertTrue("setUp should have run", setUpRan.get());
          try {
            return method.invoke(map, args);
    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)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        Map<String, Long> in = ImmutableMap.of("1", 1L, "2", 2L, "3", 3L);
        AtomicLongMap<String> map = AtomicLongMap.create();
        assertTrue(map.isEmpty());
        assertEquals(0, map.size());
        assertFalse(map.containsKey("1"));
        assertFalse(map.containsKey("2"));
        assertFalse(map.containsKey("3"));
        assertEquals(0L, map.get("1"));
        assertEquals(0L, map.get("2"));
        assertEquals(0L, map.get("3"));
    
        map.putAll(in);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

                return buckets.stream().map(e -> {
                    final Map<String, Object> map = new HashMap<>();
                    map.put(ID, Base64.getUrlEncoder().encodeToString(e.getKeyAsString().getBytes(StandardCharsets.UTF_8)));
                    map.put(KEY, e.getKeyAsString());
                    map.put(COUNT, e.getDocCount());
                    return map;
                }).collect(Collectors.toList());
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = Maps.newHashMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        map = Maps.filterEntries(map, FILTER_ENTRIES_1);
                        return Maps.filterEntries(map, FILTER_ENTRIES_2);
                      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
Back to top