Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for Unhashables (0.42 sec)

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

            expectedHashCode,
            getSet().hashCode());
      }
    
      /**
       * Returns the {@link Method} instances for the test methods in this class which call {@code
       * hashCode()} on the set values so that set tests on unhashable objects can suppress it with
       * {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method[] getHashCodeMethods() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

            expectedHashCode,
            getSet().hashCode());
      }
    
      /**
       * Returns the {@link Method} instances for the test methods in this class which call {@code
       * hashCode()} on the set values so that set tests on unhashable objects can suppress it with
       * {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method[] getHashCodeMethods() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An unhashable object to be used in testing as values in our collections.
     *
     * @author Regina O'Dell
     */
    @GwtCompatible
    public class UnhashableObject implements Comparable<UnhashableObject> {
      private final int value;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Apr 10 20:12:40 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
       * unhashable objects can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getHashCodeMethod() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        suite.addTest(
            ListTestSuiteBuilder.using(new UnhashableElementsImmutableListGenerator())
                .suppressing(ListHashCodeTester.getHashCodeMethod())
                .named("ImmutableList, unhashable values")
                .withFeatures(CollectionSize.ANY, ALLOWS_NULL_QUERIES)
                .createTestSuite());
        return suite;
      }
    
      // Creation tests
    
      public void testCreation_noArgs() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        suite.addTest(
            ListTestSuiteBuilder.using(new UnhashableElementsImmutableListGenerator())
                .suppressing(ListHashCodeTester.getHashCodeMethod())
                .named("ImmutableList, unhashable values")
                .withFeatures(CollectionSize.ANY, ALLOWS_NULL_QUERIES)
                .createTestSuite());
        return suite;
      }
    
      // Creation tests
    
      public void testCreation_noArgs() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .named("ImmutableMap.values, unhashable")
                .createTestSuite());
    
        suite.addTest(
            ListTestSuiteBuilder.using(new ImmutableMapKeyListGenerator())
                .named("ImmutableMap.keySet.asList")
                .withFeatures(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

            NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetUnhashableGenerator())
                .suppressing(SetHashCodeTester.getHashCodeMethods())
                .named(ImmutableSortedSetTest.class.getName() + ", unhashable")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
Back to top