Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 361 for entrySet (0.09 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put(two, three);
        map.remove(two, three);
        assertNotified(listener, two, three, RemovalCause.EXPLICIT);
    
        map.put(three, four);
        Iterator<?> i = map.entrySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, three, four, RemovalCause.EXPLICIT);
    
        map.put(four, five);
        i = map.keySet().iterator();
        i.next();
        i.remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/Helpers.java

      }
    
      // Would use Maps.immutableEntry
      public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> mapEntry(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      private static boolean isEmpty(Iterable<?> iterable) {
        return iterable instanceof Collection
            ? ((Collection<?>) iterable).isEmpty()
            : !iterable.iterator().hasNext();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Tables.java

       * ...
       * Map<C, V> row = table.row(rowKey);  // Needn't be in synchronized block
       * ...
       * synchronized (table) {  // Synchronizing on table, not row!
       *   Iterator<Entry<C, V>> i = row.entrySet().iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
       *     foo(i.next());
       *   }
       * }
       * }</pre>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

                    return docMap;
                }
                final Map<String, DocumentField> fields = hit.getFields();
                if (fields != null) {
                    final Map<String, Object> docMap = fields.entrySet().stream()
                            .collect(Collectors.toMap(Entry<String, DocumentField>::getKey, e -> (Object) e.getValue().getValues()));
                    docMap.put(fessConfig.getIndexFieldId(), hit.getId());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

          try {
            loadTimes = Lists.newArrayListWithCapacity(startupTimers.size());
            // N.B. There will only be an entry in the map if the service has started
            for (Entry<Service, Stopwatch> entry : startupTimers.entrySet()) {
              Service service = entry.getKey();
              Stopwatch stopwatch = entry.getValue();
              if (!stopwatch.isRunning() && !(service instanceof NoOpService)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ServiceManager.java

          try {
            loadTimes = Lists.newArrayListWithCapacity(startupTimers.size());
            // N.B. There will only be an entry in the map if the service has started
            for (Entry<Service, Stopwatch> entry : startupTimers.entrySet()) {
              Service service = entry.getKey();
              Stopwatch stopwatch = entry.getValue();
              if (!stopwatch.isRunning() && !(service instanceof NoOpService)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/TypeResolver.java

          ImmutableMap.Builder<TypeVariableKey, Type> builder = ImmutableMap.builder();
          builder.putAll(map);
          for (Entry<TypeVariableKey, ? extends Type> mapping : mappings.entrySet()) {
            TypeVariableKey variable = mapping.getKey();
            Type type = mapping.getValue();
            checkArgument(!variable.equalsType(type), "Type variable %s bound to itself", variable);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          if (found != null) {
            return found; // Found a path ending at the node!
          }
          // Recurse the edges.
          for (Entry<LockGraphNode, ExampleStackTrace> entry : allowedPriorLocks.entrySet()) {
            LockGraphNode preAcquiredLock = entry.getKey();
            found = preAcquiredLock.findPathTo(node, seen);
            if (found != null) {
              // One of this node's allowedPriorLocks found a path. Prepend an
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeMultiset.java

      private static <T extends @Nullable Object> void successor(
          AvlNode<T> a, AvlNode<T> b, AvlNode<T> c) {
        successor(a, b);
        successor(b, c);
      }
    
      /*
       * TODO(jlevy): Decide whether entrySet() should return entries with an equals() method that
       * calls the comparator to compare the two keys. If that change is made,
       * AbstractMultiset.equals() can simply check whether two multisets have equal entry sets.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/ClassPath.java

      static ImmutableSet<LocationInfo> locationsFrom(ClassLoader classloader) {
        ImmutableSet.Builder<LocationInfo> builder = ImmutableSet.builder();
        for (Map.Entry<File, ClassLoader> entry : getClassPathEntries(classloader).entrySet()) {
          builder.add(new LocationInfo(entry.getKey(), entry.getValue()));
        }
        return builder.build();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
Back to top