Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasIntersection (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

        if (!isTls) {
          return false
        }
    
        if (tlsVersionsAsString != null &&
          !tlsVersionsAsString.hasIntersection(socket.enabledProtocols, naturalOrder())
        ) {
          return false
        }
    
        if (cipherSuitesAsString != null &&
          !cipherSuitesAsString.hasIntersection(
            socket.enabledCipherSuites,
            CipherSuite.ORDER_BY_NAME,
          )
        ) {
          return false
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

     * likelihood of an intersection so great, that it is not worth the CPU cost of sorting or the
     * memory cost of hashing.
     */
    internal fun Array<String>.hasIntersection(
      other: Array<String>?,
      comparator: Comparator<in String>,
    ): Boolean {
      if (isEmpty() || other == null || other.isEmpty()) {
        return false
      }
      for (a in this) {
        for (b in other) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top