Interface TeamCityPropertiesProvider

    • Method Detail

      • getBoolean

        boolean getBoolean​(@NotNull
                           String key)

        Returns the property value as a boolean, or false if not set.

        Parameters:
        key - the property key.
        Returns:
        property value as a boolean.
        See Also:
        TeamCityProperties.getBoolean(String)
      • getBooleanOrTrue

        boolean getBooleanOrTrue​(@NotNull
                                 String key)

        Returns the property value as a boolean, or true if not set.

        Parameters:
        key - the property key.
        Returns:
        property value as a boolean.
        See Also:
        TeamCityProperties.getBooleanOrTrue(String)
      • getInteger

        int getInteger​(@NotNull
                       String key)

        Returns the property value as an int, or 0 if not set.

        Parameters:
        key - the property key.
        Returns:
        property value as an int.
        See Also:
        TeamCityProperties.getInteger(String)
      • getInteger

        int getInteger​(@NotNull
                       String key,
                       int defaultValue)

        Returns the property value as an int.

        Parameters:
        key - the property key.
        defaultValue - default value.
        Returns:
        property value as an int.
        See Also:
        TeamCityProperties.getInteger(String, int)
      • getFloat

        float getFloat​(@NotNull
                       String key)

        Returns the property value as a float, or 0.0f if not set.

        Parameters:
        key - the property key.
        Returns:
        property value as a float.
        See Also:
        TeamCityProperties.getFloat(String)
      • getFloat

        float getFloat​(@NotNull
                       String key,
                       float defaultValue)

        Returns the property value as a float.

        Parameters:
        key - the property key.
        defaultValue - default value.
        Returns:
        property value as a float.
        See Also:
        TeamCityProperties.getFloat(String, float)
      • getLong

        long getLong​(@NotNull
                     String key)

        Returns the property value as a long, or 0L if not set.

        Parameters:
        key - the property key.
        Returns:
        property value as a long.
        See Also:
        TeamCityProperties.getLong(String)
      • getLong

        long getLong​(@NotNull
                     String key,
                     long defaultValue)

        Returns the property value as a long.

        Parameters:
        key - the property key.
        defaultValue - default value.
        Returns:
        property value as a long.
        See Also:
        TeamCityProperties.getLong(String, long)
      • getProperty

        @NotNull
        String getProperty​(@NotNull
                           String key)

        Returns the property value as a String, or an empty string if not set.

        Parameters:
        key - the property key.
        Returns:
        property value as a String.
        See Also:
        TeamCityProperties.getProperty(String)