Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 249 for its (0.3 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

        int expectedHashCode = 0;
        for (Entry<K, V> entry : getSampleEntries()) {
          expectedHashCode += hash(entry);
        }
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries.",
            expectedHashCode,
            getMap().hashCode());
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testHashCode_containingNullKey() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SortedSetMultimap.java

     * {@code SortedSet} values.
     *
     * <p><b>Warning:</b> As in all {@link SetMultimap}s, do not modify either a key <i>or a value</i>
     * of a {@code SortedSetMultimap} in a way that affects its {@link Object#equals} behavior (or its
     * position in the order of the values). Undefined behavior and bugs will result.
     *
     * <p>See the Guava User Guide article on <a href=
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingQueue.java

    import java.util.NoSuchElementException;
    import java.util.Queue;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A queue which forwards all its method calls to another queue. Subclasses should override one or
     * more methods to modify the behavior of the backing queue as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java

    import java.util.Collection;
    import java.util.concurrent.BlockingDeque;
    import java.util.concurrent.TimeUnit;
    import javax.annotation.CheckForNull;
    
    /**
     * A {@link BlockingDeque} which forwards all its method calls to another {@code BlockingDeque}.
     * Subclasses should override one or more methods to modify the behavior of the backing deque as
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/SmallCharMatcher.java

      private static final double DESIRED_LOAD_FACTOR = 0.5;
    
      /**
       * Returns an array size suitable for the backing array of a hash table that uses open addressing
       * with linear probing in its implementation. The returned size is the smallest power of two that
       * can hold setSize elements with the desired load factor.
       */
      @VisibleForTesting
      static int chooseTableSize(int setSize) {
        if (setSize == 1) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingMapEntry.java

    import java.util.Map;
    import java.util.Map.Entry;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A map entry which forwards all its method calls to another map entry. Subclasses should override
     * one or more methods to modify the behavior of the backing map entry as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

      /**
       * Creates an {@code ImmutableMap} backed by a JDK HashMap. Used when probable hash flooding is
       * detected. This implementation may replace the entries in entryArray with its own entry objects
       * (though they will have the same key/value contents), and will take ownership of entryArray.
       */
      static <K, V> ImmutableMap<K, V> create(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Tests our AtomicHelper fallback strategy in AggregateFutureState.
     *
     * <p>On different platforms AggregateFutureState uses different strategies for its core
     * synchronization primitives. The strategies are all implemented as subtypes of AtomicHelper and
     * the strategy is selected in the static initializer of AggregateFutureState. This is convenient
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertTrue(
            "multiset.entrySet.remove(presentEntry) returned false",
            getMultiset().entrySet().remove(Multisets.immutableEntry(e0(), 1)));
        assertFalse("multiset contains element after removing its entry", getMultiset().contains(e0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testEntrySet_removeAbsent() {
        assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 9.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/NullnessCasts.java

       * types (or if the type is a non-variable type, like {@code String}), then code should almost
       * never use this method, preferring instead to call {@code requireNonNull} so as to benefit from
       * its runtime check.
       *
       * <p>An example use case for this method is in implementing an {@code Iterator<T>} whose {@code
       * next} field is lazily initialized. The type of that field would be {@code @Nullable T}, and the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.5K bytes
    - Viewed (0)
Back to top