Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for orNull (0.05 seconds)

  1. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOrNull_present() {
        assertThat(Optional.of("a").orNull()).isEqualTo("a");
      }
    
      public void testOrNull_absent() {
        assertThat(Optional.absent().orNull()).isNull();
      }
    
      public void testAsSet_present() {
        Set<String> expected = Collections.singleton("a");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

          optionalSets.add(optionalSet);
        }
        Set<List<Optional<?>>> cartesianProduct = Sets.cartesianProduct(optionalSets);
        return Iterables.transform(cartesianProduct, objs -> Lists.transform(objs, Optional::orNull));
      }
    
      private CacheBuilder<Object, Object> createCacheBuilder(
          @Nullable Integer concurrencyLevel,
          @Nullable Integer initialCapacity,
          @Nullable Integer maximumSize,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  3. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

    val signArtifacts: Boolean = !pgpSigningKey.orNull.isNullOrEmpty()
    
    tasks.withType<Sign>().configureEach { isEnabled = signArtifacts }
    
    signing {
        useInMemoryPgpKeys(pgpSigningKey.orNull, pgpSigningPassPhrase.orNull)
        publishing.publications.configureEach {
            if (signArtifacts) {
                signing.sign(this)
            }
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 11:01:20 GMT 2026
    - 6.2K bytes
    - Click Count (0)
Back to Top