Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MapMakerInternalMap (0.2 sec)

  1. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      "GuardedBy", // TODO(b/35466881): Fix or suppress.
      "nullness", // too much trouble for the payoff
    })
    // TODO(cpovirk): Annotate for nullness.
    class MapMakerInternalMap<
            K,
            V,
            E extends MapMakerInternalMap.InternalEntry<K, V, E>,
            S extends MapMakerInternalMap.Segment<K, V, E, S>>
        extends AbstractMap<K, V> implements ConcurrentMap<K, V>, Serializable {
    
      /*
    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)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.Equivalence;
    import com.google.common.collect.MapMakerInternalMap.InternalEntry;
    import com.google.common.collect.MapMakerInternalMap.Segment;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    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)
  3. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.Equivalence;
    import com.google.common.collect.MapMakerInternalMap.InternalEntry;
    import com.google.common.collect.MapMakerInternalMap.Segment;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Interners.java

      static final class InternerImpl<E> implements Interner<E> {
        // MapMaker is our friend, we know about this type
        @VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map;
    
        private InternerImpl(MapMaker mapMaker) {
          this.map =
              MapMakerInternalMap.createWithDummyValues(mapMaker.keyEquivalence(Equivalence.equals()));
        }
    
        @Override
        public E intern(E sample) {
          while (true) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/collect/MapMaker.java

        return setValueStrength(Strength.WEAK);
      }
    
      /**
       * A dummy singleton value type used by {@link Interners}.
       *
       * <p>{@link MapMakerInternalMap} can optimize for memory usage in this case; see {@link
       * MapMakerInternalMap#createWithDummyValues}.
       */
      enum Dummy {
        VALUE
      }
    
      MapMaker setValueStrength(Strength strength) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
    import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
    import static com.google.common.testing.SerializableTester.reserializeAndAssert;
    import static java.util.Arrays.asList;
    import static org.junit.Assert.assertThrows;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
    import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
    import static com.google.common.testing.SerializableTester.reserializeAndAssert;
    import static java.util.Arrays.asList;
    import static org.junit.Assert.assertThrows;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Interners.java

      static final class InternerImpl<E> implements Interner<E> {
        // MapMaker is our friend, we know about this type
        @VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map;
    
        private InternerImpl(MapMaker mapMaker) {
          this.map =
              MapMakerInternalMap.createWithDummyValues(mapMaker.keyEquivalence(Equivalence.equals()));
        }
    
        @Override
        public E intern(E sample) {
          while (true) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/InternersTest.java

    package com.google.common.collect;
    
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Function;
    import com.google.common.collect.Interners.InternerImpl;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/InternersTest.java

    package com.google.common.collect;
    
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Function;
    import com.google.common.collect.Interners.InternerImpl;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top