Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for MapMaker (0.16 sec)

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

     *
     * @author Bob Lee
     * @since 2.0
     * @deprecated This exception is no longer thrown by {@code com.google.common}. Previously, it was
     *     thrown by {@link MapMaker} computing maps. When support for computing maps was removed from
     *     {@code MapMaker}, it was added to {@code CacheBuilder}, which throws {@code
     *     ExecutionException}, {@code UncheckedExecutionException}, and {@code ExecutionError}. Any
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 04 13:28:27 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        @J2ktIncompatible // java.io.ObjectInputStream
        private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
          in.defaultReadObject();
          MapMaker mapMaker = readMapMaker(in);
          delegate = mapMaker.makeMap();
          readEntries(in);
        }
    
        private Object readResolve() {
          return delegate;
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

            Map<Element, Element> map = new MapMaker().concurrencyLevel(1).makeMap();
            for (Element element : keys) {
              map.put(element, element);
            }
            return map;
          }
        },
        MapMaker16 {
          @Override
          Map<Element, Element> create(Collection<Element> keys) {
            Map<Element, Element> map = new MapMaker().concurrencyLevel(16).makeMap();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

         */
        final Map<LockGraphNode, ExampleStackTrace> allowedPriorLocks =
            new MapMaker().weakKeys().makeMap();
    
        /**
         * The map tracking lock nodes that can cause a lock acquisition cycle if acquired before this
         * node.
         */
        final Map<LockGraphNode, PotentialDeadlockException> disallowedPriorLocks =
            new MapMaker().weakKeys().makeMap();
    
        final String lockName;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/package-info.java

     * an example, see {@link ForwardingCollection}.
     *
     * <h2>Other</h2>
     *
     * <ul>
     *   <li>{@link EvictingQueue}
     *   <li>{@link Interner}, {@link Interners}
     *   <li>{@link MapMaker}
     *   <li>{@link MinMaxPriorityQueue}
     *   <li>{@link PeekingIterator}
     * </ul>
     */
    @CheckReturnValue
    @ParametersAreNonnullByDefault
    package com.google.common.collect;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

      @J2ktIncompatible // MapMaker
      public static Ordering<@Nullable Object> arbitrary() {
        return ArbitraryOrderingHolder.ARBITRARY_ORDERING;
      }
    
      @J2ktIncompatible // MapMaker
      private static class ArbitraryOrderingHolder {
        static final Ordering<@Nullable Object> ARBITRARY_ORDERING = new ArbitraryOrdering();
      }
    
      @J2ktIncompatible // MapMaker
      @VisibleForTesting
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Striped.java

    import com.google.common.base.MoreObjects;
    import com.google.common.base.Preconditions;
    import com.google.common.base.Supplier;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.MapMaker;
    import com.google.common.math.IntMath;
    import com.google.common.primitives.Ints;
    import java.lang.ref.Reference;
    import java.lang.ref.ReferenceQueue;
    import java.lang.ref.WeakReference;
    import java.math.RoundingMode;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

           * UnsignedBytesBenchmark. TODO(cpovirk): benchmark this
           */
          /*
           * A CopyOnWriteArraySet<WeakReference> is faster than a newSetFromMap of a MapMaker map with
           * weakKeys() and concurrencyLevel(1), even up to at least 12 cached exception types.
           */
          private static final Set<WeakReference<Class<? extends Exception>>> validClasses =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/FinalizableReferenceQueue.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public class FinalizableReferenceQueue implements Closeable {
      /*
       * The Finalizer thread keeps a phantom reference to this object. When the client (for example, a
       * map built by MapMaker) no longer has a strong reference to this object, the garbage collector
       * will reclaim it and enqueue the phantom reference. The enqueued reference will trigger the
       * Finalizer to stop.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public class FinalizableReferenceQueue implements Closeable {
      /*
       * The Finalizer thread keeps a phantom reference to this object. When the client (for example, a
       * map built by MapMaker) no longer has a strong reference to this object, the garbage collector
       * will reclaim it and enqueue the phantom reference. The enqueued reference will trigger the
       * Finalizer to stop.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
Back to top