Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for equality (0.07 sec)

  1. android/guava/src/com/google/common/cache/CacheBuilder.java

     * reflected in that iterator. These iterators never throw {@link ConcurrentModificationException}.
     *
     * <p><b>Note:</b> by default, the returned cache uses equality comparisons (the {@link
     * Object#equals equals} method) to determine equality for keys or values. However, if {@link
     * #weakKeys} was specified, the cache uses identity ({@code ==}) comparisons instead for keys.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

          Comparator<? super E> comparator) {
        return new TreeSet<>(checkNotNull(comparator));
      }
    
      /**
       * Creates an empty {@code Set} that uses identity to determine equality. It compares object
       * references, instead of calling {@code equals}, to determine whether a provided object matches
       * an element in the set. For example, {@code contains} returns {@code false} when passed an
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

     * that makes `java.net.URL` unusable for many things. It shouldn't be used as a [Map] key or in a
     * [Set]. Doing so is both inefficient because equality may require a DNS lookup, and incorrect
     * because unequal URLs may be equal because of how they are hosted.
     *
     * ### Equal URLs should be equal
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 63.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<StringForFirstTypeArg<Integer>> subtype =
            new TypeToken<StringForFirstTypeArg<Integer>>() {};
        assertTrue(subtype.isSubtypeOf(supertype));
    
        // TODO(benyu): This should check equality to an expected value, see discussion in cl/98674873
        TypeToken<?> unused = supertype.getSubtype(subtype.getRawType());
      }
    
      public void testGetSubtype_baseClassWithNoTypeArgs() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<StringForFirstTypeArg<Integer>> subtype =
            new TypeToken<StringForFirstTypeArg<Integer>>() {};
        assertTrue(subtype.isSubtypeOf(supertype));
    
        // TODO(benyu): This should check equality to an expected value, see discussion in cl/98674873
        TypeToken<?> unused = supertype.getSubtype(subtype.getRawType());
      }
    
      public void testGetSubtype_baseClassWithNoTypeArgs() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

    _2016-02-06_
    
     *  New: WebSockets now defer some writes. This should improve performance for
        some applications.
     *  New: Override `equals()` and `hashCode()` in our new cookie class. This
        class now defines equality by value rather than by reference.
     *  New: Handle 408 responses by retrying the request. This allows servers to
        direct clients to retry rather than failing permanently.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Predicate<String> predicate = equalTo("pants");
    
        assertFalse(any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(any(list.iterator(), predicate));
      }
    
      public void testAll() {
        List<String> list = new ArrayList<>();
        Predicate<String> predicate = equalTo("cool");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Predicate<String> predicate = equalTo("pants");
    
        assertFalse(any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(any(list.iterator(), predicate));
      }
    
      public void testAll() {
        List<String> list = new ArrayList<>();
        Predicate<String> predicate = equalTo("cool");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

          "Hello".toRequestBody("text/plain".toMediaType()),
          CoreMatchers.equalTo(5L),
          CoreMatchers.equalTo(19L),
        )
      }
    
      @Test
      fun requestBodySuccessHttp() {
        requestBodySuccess(
          "Hello".toRequestBody("text/plain".toMediaType()),
          CoreMatchers.equalTo(5L),
          CoreMatchers.equalTo(19L),
        )
      }
    
      @Test
      fun requestBodySuccessStreaming() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          return new WeakValueReferenceImpl<>(queue, get(), entry);
        }
      }
    
      /**
       * Applies a supplemental hash function to a given hash code, which defends against poor quality
       * hash functions. This is critical when the concurrent hash map uses power-of-two length hash
       * tables, that otherwise encounter collisions for hash codes that do not differ in lower or upper
       * bits.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 90K bytes
    - Viewed (0)
Back to top