Interface TeamCityPropertiesProvider
-
- All Known Implementing Classes:
AbstractPropertiesProvider,InMemoryPropertiesProvider,InternalPropertiesProvider
public interface TeamCityPropertiesProviderA generic storage-agnostic TeamCity properties provider which may be used as a replacement for
TeamCityProperties.- Since:
- 2018.1
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
- See Also:
TeamCityProperties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBoolean(String key)Returns the property value as aboolean, orfalseif not set.booleangetBooleanOrTrue(String key)Returns the property value as aboolean, ortrueif not set.floatgetFloat(String key)Returns the property value as afloat, or0.0fif not set.floatgetFloat(String key, float defaultValue)Returns the property value as afloat.intgetInteger(String key)Returns the property value as anint, or0if not set.intgetInteger(String key, int defaultValue)Returns the property value as anint.longgetLong(String key)Returns the property value as along, or0Lif not set.longgetLong(String key, long defaultValue)Returns the property value as along.StringgetProperty(String key)Returns the property value as aString, or an empty string if not set.StringgetProperty(String key, String defaultValue)Returns the property value as aString.StringgetPropertyOrNull(String key)Returns the property value as aString, ornullif not set.StringgetPropertyOrNull(String key, String defaultValue)Returns the property value as aString, ornullif not set.
-
-
-
Method Detail
-
getBoolean
boolean getBoolean(@NotNull String key)Returns the property value as a
boolean, orfalseif 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, ortrueif 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, or0if 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, or0.0fif 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, or0Lif 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)
-
getProperty
@NotNull String getProperty(@NotNull String key, @NotNull String defaultValue)
Returns the property value as a
String.- Parameters:
key- the property key.defaultValue- default value.- Returns:
- property value as a
String. - See Also:
TeamCityProperties.getProperty(String, String)
-
getPropertyOrNull
@Nullable String getPropertyOrNull(@NotNull String key)
Returns the property value as a
String, ornullif not set.- Parameters:
key- the property key.- Returns:
- property value as a
String. - See Also:
TeamCityProperties.getPropertyOrNull(String)
-
getPropertyOrNull
@Nullable String getPropertyOrNull(@NotNull String key, @Nullable String defaultValue)
Returns the property value as a
String, ornullif not set.- Parameters:
key- the property key.defaultValue- default value.- Returns:
- property value as a
String. - See Also:
TeamCityProperties.getPropertyOrNull(String, String)
-
-