Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IdentityHashMap (0.09 sec)

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

      // removed, since IdentityHashMap throws an exception when that occurs.
      @SuppressWarnings("IdentityHashMapBoxing") // explicitly testing IdentityHashMap
      public void testIdentityKeySetIteratorRemove() {
        BiMap<Integer, String> bimap =
            new AbstractBiMap<Integer, String>(
                new IdentityHashMap<Integer, String>(), new IdentityHashMap<String, Integer>()) {};
        bimap.put(1, "one");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *
         * @param <K> the key type of {@link IdentityHashMap}
         * @param <V> the value type of {@link IdentityHashMap}
         * @return a new instance of {@link IdentityHashMap}
         * @see IdentityHashMap#IdentityHashMap()
         */
        public static <K, V> IdentityHashMap<K, V> newIdentityHashMap() {
            return new IdentityHashMap<>();
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/Maps.java

         * @param value the value to be added to the <code>Map</code>
         * @return a {@literal Maps} for constructing a {@link IdentityHashMap} with the specified key and value
         */
        public static <KEY, VALUE> Maps<KEY, VALUE> identityHashMap(final KEY key, final VALUE value) {
            return new Maps<>(new IdentityHashMap<KEY, VALUE>()).$(key, value);
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java

            }
        }
    
        private TransferListenerAdapter(ArtifactTransferListener listener) {
            this.listener = listener;
            this.artifacts = new IdentityHashMap<>();
            this.transfers = new IdentityHashMap<>();
        }
    
        @Override
        public void debug(String message) {}
    
        @Override
        public void transferCompleted(TransferEvent transferEvent) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/RegularImmutableMap.java

    import com.google.common.collect.ImmutableMapEntry.NonTerminalImmutableMapEntry;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.Serializable;
    import java.util.IdentityHashMap;
    import java.util.function.BiConsumer;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link ImmutableMap} used for 0 entries and for 2+ entries. Additional
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

        @GuardedBy("monitor")
        final Multiset<State> states = servicesByState.keys();
    
        @GuardedBy("monitor")
        final IdentityHashMap<Service, Stopwatch> startupTimers = new IdentityHashMap<>();
    
        /**
         * These two booleans are used to mark the state as ready to start.
         *
         * <p>{@link #ready}: is set by {@link #markReady} to indicate that all listeners have been
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/Sets.java

       * an element in the set. For example, {@code contains} returns {@code false} when passed an
       * object that equals a set member, but isn't the same instance. This behavior is similar to the
       * way {@code IdentityHashMap} handles key lookups.
       *
       * @since 8.0
       */
      public static <E extends @Nullable Object> Set<E> newIdentityHashSet() {
        return Collections.newSetFromMap(Maps.<E, Boolean>newIdentityHashMap());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                CollectionFeature.SERIALIZABLE,
                CollectionSize.ANY)
            .suppressing(suppressForConcurrentSkipListMap())
            .createTestSuite();
      }
    
      // TODO: IdentityHashMap, AbstractMap
    
      private static Map<String, String> toHashMap(Entry<String, String>[] entries) {
        return populate(new HashMap<String, String>(), entries);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                CollectionFeature.SERIALIZABLE,
                CollectionSize.ANY)
            .suppressing(suppressForConcurrentSkipListMap())
            .createTestSuite();
      }
    
      // TODO: IdentityHashMap, AbstractMap
    
      private static Map<String, String> toHashMap(Entry<String, String>[] entries) {
        return populate(new HashMap<String, String>(), entries);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheBuilder.java

    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.lang.ref.SoftReference;
    import java.lang.ref.WeakReference;
    import java.time.Duration;
    import java.util.ConcurrentModificationException;
    import java.util.IdentityHashMap;
    import java.util.Map;
    import java.util.concurrent.TimeUnit;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import org.jspecify.annotations.Nullable;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
Back to top