Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 494 for hashcode (0.08 sec)

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

      }
    
      /**
       * A sensible definition of {@link #hashCode} as {@code entrySet().hashCode()} . If you override
       * {@link #entrySet}, you may wish to override {@link #hashCode} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected int standardHashCode() {
        return entrySet().hashCode();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetsTest.java

        for (Set<E> subset : powerSet) {
          result.add(new HashSet<E>(subset));
        }
        return result;
      }
    
      private static Object objectWithHashCode(int hashCode) {
        return new Object() {
          @Override
          public int hashCode() {
            return hashCode;
          }
        };
      }
    
      // TODO b/327389044 - `Set<? extends Object> elements` should be enough but J2KT needs the <E>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Network.java

     * additional documentation, including:
     *
     * <ul>
     *   <li><a
     *       href="https://github.com/google/guava/wiki/GraphsExplained#equals-hashcode-and-graph-equivalence">
     *       {@code equals()}, {@code hashCode()}, and graph equivalence</a>
     *   <li><a href="https://github.com/google/guava/wiki/GraphsExplained#synchronization">
     *       Synchronization policy</a>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SingletonImmutableSet.java

        return false;
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        dst[offset] = element;
        return offset + 1;
      }
    
      @Override
      public final int hashCode() {
        return element.hashCode();
      }
    
      @Override
      public String toString() {
        return '[' + element.toString() + ']';
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java

            if (obj instanceof final SmbShareInfo si) {
                return Objects.equals(this.netName, si.netName);
            }
            return false;
        }
    
        @Override
        public int hashCode() {
            return Objects.hashCode(this.netName);
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

        }
    
        /** {@inheritDoc} */
        @Override
        public int hashCode() {
            int result = 17;
    
            result = 37 * result + getGroupId().hashCode();
            result = 37 * result + getArtifactId().hashCode();
            result = 37 * result + getType().hashCode();
            if (getVersion() != null) {
                result = 37 * result + getVersion().hashCode();
            }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

              .append('>')
              .toString();
        }
    
        @Override
        public int hashCode() {
          return (ownerType == null ? 0 : ownerType.hashCode())
              ^ argumentsList.hashCode()
              ^ rawType.hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object other) {
          if (!(other instanceof ParameterizedType)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Hashing.java

       * hereby disclaims copyright to this source code.
       */
      static int smear(int hashCode) {
        return (int) (C2 * Integer.rotateLeft((int) (hashCode * C1), 15));
      }
    
      static int smearedHash(@Nullable Object o) {
        return smear((o == null) ? 0 : o.hashCode());
      }
    
      private static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Route.kt

          other.address == address &&
          other.proxy == proxy &&
          other.socketAddress == socketAddress
    
      override fun hashCode(): Int {
        var result = 17
        result = 31 * result + address.hashCode()
        result = 31 * result + proxy.hashCode()
        result = 31 * result + socketAddress.hashCode()
        return result
      }
    
      /**
       * Returns a string with the URL hostname, socket IP address, and socket port, like one of these:
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

        private final double variance;
    
        MeanAndVariance(double mean, double variance) {
          this.mean = mean;
          this.variance = variance;
        }
    
        @Override
        public int hashCode() {
          return Double.hashCode(mean) * 31 + Double.hashCode(variance);
        }
      }
    
      enum VarianceAlgorithm {
        DO_NOT_COMPUTE {
          @Override
          MeanAndVariance variance(double[] values, MeanAlgorithm meanAlgorithm) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top