Interface IPropertyInitializer
-
- All Known Implementing Classes:
DifficultyPropertyInitializer
,PropertyInitializer
public interface IPropertyInitializer
A IPropertyInitializer is backed by a property file containing various settings for the same key. The key is composed of a base key and a suffix that is defined at construction time.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on May 13, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getDoubleValue(java.lang.String baseKey)
Retrieve the double value for the key stored in the backing properties.int
getIntValue(java.lang.String baseKey)
Retrieve the integer value for the key stored in the backing properties.java.lang.String
getValue(java.lang.String baseKey)
Retrieve the String value for the key stored in the backing properties.
-
-
-
Method Detail
-
getIntValue
int getIntValue(java.lang.String baseKey)
Retrieve the integer value for the key stored in the backing properties. The key is constructed bybaseKey
.suffix
, where suffix is defined at construction time.- Parameters:
baseKey
- base part of the property key- Returns:
- value as an integer.
-
getDoubleValue
double getDoubleValue(java.lang.String baseKey)
Retrieve the double value for the key stored in the backing properties. The key is constructed bybaseKey
.suffix
, where suffix is defined at construction time.- Parameters:
baseKey
- base part of the property key- Returns:
- value as an double.
-
getValue
java.lang.String getValue(java.lang.String baseKey)
Retrieve the String value for the key stored in the backing properties. The key is constructed bybaseKey
.suffix
, where suffix is defined at construction time.- Parameters:
baseKey
- base part of the property key- Returns:
- value as an String.
-
-