docs.gradle.org

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      T get()

      If a value is present in this provider, returns the value, otherwise throws java.lang.IllegalStateException.

      T getOrNull()

      Returns the value if present in this provider.

      boolean isPresent()

      Returns true if there is a value present, otherwise false.

    • Method Detail

      • get

        T get()

        If a value is present in this provider, returns the value, otherwise throws java.lang.IllegalStateException.

        Returns:
        Value
        Throws:
        IllegalStateException - if there is no value present
      • getOrNull

        @Internal
        @Nullable
        T getOrNull()

        Returns the value if present in this provider. Returns null if value is not available.

        Returns:
        Value
      • isPresent

        @Internal
        boolean isPresent()

        Returns true if there is a value present, otherwise false.

        Returns:
        true if there is a value present, otherwise false

Read the original on docs.gradle.org ↗