Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 233 for takeIf (0.12 seconds)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            }
    
            in 8..9 -> {
              id = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 10..12 -> {
              id = null // 'id' on a line of its own.
            }
    
            in 13..14 -> {
              type = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 15..17 -> {
              type = null // 'event' on a line of its own
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/JavaSourceQueries.kt

        }
    
    
    private
    fun getSinceJavaFieldVisitorFor(field: JApiField) =
        object : SinceVisitor() {
    
            override fun visit(declaration: FieldDeclaration, arg: Unit?): SinceTagStatus? =
                declaration.takeIf { matchesName(it.fieldName, field.name) }?.getSince()?.let { SinceTagStatus.Present(it) }
    
            override fun visit(declaration: EnumConstantDeclaration, arg: Unit?): SinceTagStatus? =
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jun 06 17:52:09 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

                )
            }
    
        private
        inline fun <reified T : Any> CtClass.ctAnnotation(): Annotation? =
            getAnnotation(T::class.java)
                ?.takeIf { Proxy.isProxyClass(it::class.java) }
                ?.let { Proxy.getInvocationHandler(it) as? AnnotationImpl }
                ?.annotation
    
        private
        val CtMember.jvmSignature: String
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jul 04 09:21:38 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/ClassGraph.kt

    ) {
    
        private
        val classes: MutableMap<String, ClassDetails> = linkedMapOf()
    
        val entryPoints: MutableSet<ClassDetails> = linkedSetOf()
    
        val shadowPackagePrefix =
            shadowPackage.takeIf(String::isNotEmpty)
                ?.let { it.replace('.', '/') + "/" }
                ?: ""
    
        operator fun get(className: String) =
            classes.computeIfAbsent(className) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 2.6K bytes
    - Click Count (0)
  5. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratePlatformsDataTask.kt

        fun action() {
            val allPlatforms = platforms.get()
            val data = allPlatforms.map { platform ->
                PlatformData(
                    name = platform.name,
                    dirs = platform.children.takeIf { it.isNotEmpty() }?.map { it.name } ?: listOf(platform.name),
                    uses = platform.uses.map { use -> allPlatforms.single { it.id == use }.name },
                )
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/security/http-basic-auth.md

    #### Fix it with `secrets.compare_digest()` { #fix-it-with-secrets-compare-digest }
    
    But in our code we are actually using `secrets.compare_digest()`.
    
    In short, it will take the same time to compare `stanleyjobsox` to `stanleyjobson` than it takes to compare `johndoe` to `stanleyjobson`. And the same for the password.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/dependencies/index.md

    And that function takes parameters in the same way that *path operation functions* do.
    
    /// tip
    
    You'll see what other "things", apart from functions, can be used as dependencies in the next chapter.
    
    ///
    
    Whenever a new request arrives, **FastAPI** will take care of:
    
    * Calling your dependency ("dependable") function with the correct parameters.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  8. dbflute_fess/playsql/take-finally.sql

    Shinsuke Sugaya <******@****.***> 1436049991 +0900
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jul 04 22:46:31 GMT 2015
    - 1 bytes
    - Click Count (0)
  9. docs/erasure/storage-class/README.md

    on 16 drive MinIO deployment. If you use eight data and eight parity drives, the file space usage will be approximately twice, i.e. 100 MiB
    file will take 200 MiB space. But, if you use ten data and six parity drives, same 100 MiB file takes around 160 MiB. If you use 14 data and
    two parity drives, 100 MiB file takes only approximately 114 MiB.
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            setupParentForUrlCreation();
            StubFileEntry skip = new StubFileEntry("SKIPME", SmbConstants.TYPE_SERVER);
            StubFileEntry take = new StubFileEntry("TAKEME", SmbConstants.TYPE_SERVER);
            when(delegate.hasNext()).thenReturn(true, true, false);
            when(delegate.next()).thenReturn(skip, take);
    
            // First call: reject, Second call: accept
            when(filter.accept(any(SmbResource.class))).thenReturn(false, true);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top