Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for Constructor (0.23 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

                return true
            }
    
            val aConstructor = a.constructor
            val bConstructor = b.constructor
    
            if (aConstructor is IntersectionTypeConstructor) {
                return aConstructor.supertypes.all { areTypesCompatible(it, b) }
            }
    
            if (bConstructor is IntersectionTypeConstructor) {
                return bConstructor.supertypes.all { areTypesCompatible(a, it) }
            }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Jan 29 09:37:59 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  2. mockwebserver-junit5/README.md

        ...
      }
    }
    ```
    
    Alternately you may add the [MockWebServer] as a constructor parameter:
    
    ```
    class MyTest {
      private final MockWebServer server;
    
      MyTest(MockWebServer server) {
        this.server = server;
      }
    
      @Test
      void test() {
        ...
      }
    }
    ```
    
    Constructor injection is particularly concise in Kotlin:
    
    ```
    class MyTest(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            // If we are at a super-type constructor call, adjust the resolution expression so that we
            // get the constructor instead of the class.
            //
            // For the example:
            //
            // class A {
            //   constructor()
            // }
            // class B: <caret>A()
            //
            // We want to resolve to the secondary constructor in A. Therefore, we check that the caret is at a supertype
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt

            }
        }
    
        private
        val reportedMembers = listOf(
            "Class" to "AddedClass"
        ) + reportedMembersFor("AddedClass") + listOf(
            "Constructor" to "AddedClass(java.lang.String)",
            "Constructor" to "AddedClass()",
            "Class" to "AddedEnum",
            "Field" to "FOO"
        ) + reportedMembersFor("AddedEnum", isEnum = true) + listOf(
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Jul 11 06:57:51 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

     *
     * @constructor Create a new connection pool with tuning parameters appropriate for a single-user
     * application. The tuning parameters in this pool are subject to change in future OkHttp releases.
     * Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of
     * inactivity.
     */
    class ConnectionPool internal constructor(
      internal val delegate: RealConnectionPool,
    ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/ErrorCode.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    /** http://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-7 */
    enum class ErrorCode constructor(val httpCode: Int) {
      /** Not an error!  */
      NO_ERROR(0),
    
      PROTOCOL_ERROR(1),
    
      INTERNAL_ERROR(2),
    
      FLOW_CONTROL_ERROR(3),
    
      SETTINGS_TIMEOUT(4),
    
      STREAM_CLOSED(5),
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/bootstrap.min.js.map

    === 'click') {\n        $(this.element).on(\n          this.constructor.Event.CLICK,\n          this.config.selector,\n          (event) => this.toggle(event)\n        )\n      } else if (trigger !== Trigger.MANUAL) {\n        const eventIn = trigger === Trigger.HOVER\n          ? this.constructor.Event.MOUSEENTER\n          : this.constructor.Event.FOCUSIN\n        const eventOut = trigger === Trigger.HOVER\n          ? this.constructor.Event.MOUSELEAVE\n          : this.constructor.Event.FOCUSOUT\n\n...
    Plain Text
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 185.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/ExperimentalOkHttpApi.kt

    @Target(
      AnnotationTarget.CLASS,
      AnnotationTarget.ANNOTATION_CLASS,
      AnnotationTarget.PROPERTY,
      AnnotationTarget.FIELD,
      AnnotationTarget.LOCAL_VARIABLE,
      AnnotationTarget.VALUE_PARAMETER,
      AnnotationTarget.CONSTRUCTOR,
      AnnotationTarget.FUNCTION,
      AnnotationTarget.PROPERTY_GETTER,
      AnnotationTarget.PROPERTY_SETTER,
      AnnotationTarget.TYPEALIAS,
    )
    @RequiresOptIn(level = RequiresOptIn.Level.ERROR)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForReceiverParameter.kt

    import org.jetbrains.kotlin.fir.FirSession
    import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
    import org.jetbrains.kotlin.name.ClassId
    
    internal class KtFirAnnotationListForReceiverParameter private constructor(
        private val firCallableSymbol: FirCallableSymbol<*>,
        private val receiverParameter: FirAnnotationContainer,
        private val builder: KtSymbolByFirBuilder,
    ) : KtAnnotationsList() {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/SuppressSignatureCheck.kt

    import kotlin.annotation.AnnotationRetention.BINARY
    import kotlin.annotation.AnnotationTarget.CLASS
    import kotlin.annotation.AnnotationTarget.CONSTRUCTOR
    import kotlin.annotation.AnnotationTarget.FUNCTION
    
    @Retention(BINARY)
    @Documented
    @Target(CONSTRUCTOR, CLASS, FUNCTION)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 990 bytes
    - Viewed (0)
Back to top