Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 231 for containsKey (0.16 sec)

  1. guava/src/com/google/common/collect/Maps.java

          K leftKey = entry.getKey();
          V leftValue = entry.getValue();
          if (right.containsKey(leftKey)) {
            /*
             * The cast is safe because onlyOnRight contains all the keys of right.
             *
             * TODO(cpovirk): Consider checking onlyOnRight.containsKey instead of right.containsKey.
             * That could change behavior if the input maps use different equivalence relations (and so
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/FilteredEntryMultimap.java

        if (collection instanceof Set) {
          return Sets.filter((Set<E>) collection, predicate);
        } else {
          return Collections2.filter(collection, predicate);
        }
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return asMap().get(key) != null;
      }
    
      @Override
      public Collection<V> removeAll(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        if (comparator == null) {
          comparator = (Comparator<? super K>) NATURAL_ORDER;
        }
        return comparator;
      }
    
      @Override
      public boolean containsKey(Object key) {
        try {
          return delegate.containsKey(checkValid(key));
        } catch (NullPointerException | ClassCastException e) {
          return false;
        }
      }
    
      @Override
      public boolean containsValue(Object value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        }
    
        @Override
        public boolean contains(final Object value) {
            return getProperties().contains(value);
        }
    
        @Override
        public boolean containsKey(final Object key) {
            return getProperties().containsKey(key);
        }
    
        @Override
        public boolean containsValue(final Object value) {
            return getProperties().containsValue(value);
        }
    
        @Override
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeBasedTableRowMapInterfaceTest.java

        assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n"));
        table.row("b").subMap("b", "y").clear();
        assertEquals(table.row("b"), ImmutableMap.of());
        assertFalse(table.backingMap.containsKey("b"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 29 15:15:31 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

            return map.size();
        }
    
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
        @Override
        public boolean contains(final Object o) {
            return map.containsKey(o);
        }
    
        @Override
        public boolean add(final String o) {
            return map.put(o, PRESENT) == null;
        }
    
        @Override
        public boolean remove(final Object o) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/HttpHeadersTest.java

      private static String upperToHttpHeaderName(
          String constantName,
          ImmutableBiMap<String, String> specialCases,
          ImmutableSet<String> uppercaseAcronyms) {
        if (specialCases.containsKey(constantName)) {
          return specialCases.get(constantName);
        }
        List<String> parts = Lists.newArrayList();
        for (String part : SPLITTER.split(constantName)) {
          if (!uppercaseAcronyms.contains(part)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        K key = secondEntry.getKey();
        SortedMap<K, V> subMap = map.tailMap(key);
        subMap.remove(key);
        assertNull(subMap.remove(firstEntry.getKey()));
        assertEquals(map.size(), oldSize - 1);
        assertFalse(map.containsKey(key));
        assertEquals(subMap.size(), oldSize - 2);
      }
    
      public void testTailMapClearThrough() {
        SortedMap<K, V> map;
        try {
          map = makePopulatedMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

      private static String upperToHttpHeaderName(
          String constantName,
          ImmutableBiMap<String, String> specialCases,
          ImmutableSet<String> uppercaseAcronyms) {
        if (specialCases.containsKey(constantName)) {
          return specialCases.get(constantName);
        }
        List<String> parts = Lists.newArrayList();
        for (String part : SPLITTER.split(constantName)) {
          if (!uppercaseAcronyms.contains(part)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

        if (collection instanceof Set) {
          return Sets.filter((Set<E>) collection, predicate);
        } else {
          return Collections2.filter(collection, predicate);
        }
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return asMap().get(key) != null;
      }
    
      @Override
      public Collection<V> removeAll(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top