Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 559 for hashcode (0.09 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BitString.kt

    internal data class BitString(
      val byteString: ByteString,
      /** 0-7 unused bits in the last byte. */
      val unusedBitsCount: Int,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + byteString.hashCode()
        result = 31 * result + unusedBitsCount
        return result
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

                && parameterTypes.equals(other.parameterTypes)
                && typeSignature.equals(other.typeSignature);
          }
    
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(name, parameterTypes, typeSignature);
        }
    
        @Override
        public String toString() {
          return rootLocaleFormat("%s%s(%s)", typeSignature, name, getTypesString(parameterTypes));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FauxveridesTest.java

                && parameterTypes.equals(other.parameterTypes)
                && typeSignature.equals(other.typeSignature);
          }
    
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(name, parameterTypes, typeSignature);
        }
    
        @Override
        public String toString() {
          return rootLocaleFormat("%s%s(%s)", typeSignature, name, getTypesString(parameterTypes));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java

          return this.presentFeatures.equals(that.presentFeatures)
              && this.absentFeatures.equals(that.absentFeatures);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return presentFeatures.hashCode() * 31 + absentFeatures.hashCode();
      }
    
      @Override
      public String toString() {
        return "{TesterRequirements: present=" + presentFeatures + ", absent=" + absentFeatures + "}";
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K 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(@CheckForNull Object o) {
        return smear((o == null) ? 0 : o.hashCode());
      }
    
      private static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

            .addEqualityGroup(table, hashCopy, reordered)
            .addEqualityGroup(smaller)
            .addEqualityGroup(swapOuter)
            .addEqualityGroup(swapValues)
            .testEquals();
      }
    
      public void testHashCode() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        int expected =
            Objects.hashCode("foo", 1, 'a')
                + Objects.hashCode("bar", 1, 'b')
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top