Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for hashcode (0.07 seconds)

  1. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

          this.delegateString = delegateString;
          this.onHashCode = onHashCode;
          this.onEquals = onEquals;
          this.onCompareTo = onCompareTo;
        }
    
        @Override
        public int hashCode() {
          onHashCode.run();
          return delegateString.hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object other) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 9K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                  public int hashCode() {
                    return runnable.hashCode();
                  }
                });
      }
    
      public void testFailsToForwardEquals() {
        tester.includingEquals();
        assertFailure(
            Runnable.class,
            runnable ->
                new ForwardingRunnable(runnable) {
                  @Override
                  public int hashCode() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  3. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                  public int hashCode() {
                    return runnable.hashCode();
                  }
                });
      }
    
      public void testFailsToForwardEquals() {
        tester.includingEquals();
        assertFailure(
            Runnable.class,
            runnable ->
                new ForwardingRunnable(runnable) {
                  @Override
                  public int hashCode() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        List<Object> tentativeArgs = new ArrayList<>(args);
        tentativeArgs.set(i, alternateArg);
        return createInstance(factory, tentativeArgs).hashCode()
            == createInstance(factory, args).hashCode();
      }
    
      // distinctValues is a type-safe class-values mapping, but we don't have a type-safe data
      // structure to hold the mappings.
      @SuppressWarnings({"unchecked", "rawtypes"})
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 32.5K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/ClassToInstanceMapTesting.java

          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof Impl && value == ((Impl) obj).value;
        }
    
        @Override
        public int hashCode() {
          return value;
        }
    
        @Override
        public String toString() {
          return Integer.toString(value);
        }
      }
    
      private ClassToInstanceMapTesting() {}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 20:00:15 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/Suppliers.java

            return function.equals(that.function) && supplier.equals(that.supplier);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hash(function, supplier);
        }
    
        @Override
        public String toString() {
          return "Suppliers.compose(" + function + ", " + supplier + ")";
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *   private final String zipcode;
     *
     *   public Address(String city, String state, String zipcode) {...}
     *
     *   {@literal @Override} public boolean equals(Object obj) {...}
     *   {@literal @Override} public int hashCode() {...}
     *   ...
     * }
     * </pre>
     *
     * <p>No cascading checks are performed against the return values of methods unless the method is a
     * static factory method. Neither are semantics of mutation methods such as {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/base/Suppliers.java

            return function.equals(that.function) && supplier.equals(that.supplier);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hash(function, supplier);
        }
    
        @Override
        public String toString() {
          return "Suppliers.compose(" + function + ", " + supplier + ")";
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *   private final String zipcode;
     *
     *   public Address(String city, String state, String zipcode) {...}
     *
     *   {@literal @Override} public boolean equals(Object obj) {...}
     *   {@literal @Override} public int hashCode() {...}
     *   ...
     * }
     * </pre>
     *
     * <p>No cascading checks are performed against the return values of methods unless the method is a
     * static factory method. Neither are semantics of mutation methods such as {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

       * representation is not guaranteed.
       */
      @Override
      public String toString() {
        return MoreObjects.toStringHelper(this).addValue(toParsableString()).toString();
      }
    
      @Override
      public int hashCode() {
        return Objects.hash(
            initialCapacity,
            maximumSize,
            maximumWeight,
            concurrencyLevel,
            keyStrength,
            valueStrength,
            recordStats,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
Back to Top