Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for orNull (0.09 seconds)

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

    val Project.maxTestDistributionRemoteExecutors: Int?
        get() = gradleProperty(MAX_TEST_DISTRIBUTION_REMOTE_EXECUTORS).orNull?.toInt()
    
    val Project.maxTestDistributionLocalExecutors: Int?
        get() = gradleProperty(MAX_TEST_DISTRIBUTION_LOCAL_EXECUTORS).orNull?.toInt()
    
    val Project.toolchainInstallationPaths: Provider<String>
        get() = gradleProperty(JAVA_INSTALLATIONS_PATHS_PROPERTY)
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 18 22:01:30 GMT 2025
    - 17.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/Optional.java

      // If users use this when they shouldn't, we hope that NewApi will catch subsequent Optional calls
      @IgnoreJRERequirement
      public java.util.Optional<T> toJavaUtil() {
        return java.util.Optional.ofNullable(orNull());
      }
    
      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOrNull_present() {
        assertEquals("a", Optional.of("a").orNull());
      }
    
      public void testOrNull_absent() {
        assertThat(Optional.absent().orNull()).isNull();
      }
    
      public void testAsSet_present() {
        Set<String> expected = Collections.singleton("a");
        assertEquals(expected, Optional.of("a").asSet());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  4. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

                    maxLocalExecutors = project.maxTestDistributionLocalExecutors
    
                    if (maxLocalExecutors.orNull != 0) {
                        localOnly {
                            includeAnnotationClasses.addAll("org.gradle.testdistribution.LocalOnly")
                        }
                    }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Dec 19 06:44:41 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java

                        model.setDescription(intDescription);
                    }
                    // Url
                    String orgUrl = model.getUrl();
                    String intUrl = interpolate(orgUrl);
                    if (orgUrl != intUrl) {
                        model.setUrl(intUrl);
                    }
                    // ChildProjectUrlInheritAppendPath
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 43.1K bytes
    - Click Count (0)
Back to Top