Changed addTextReplacement to also accept ints

This commit is contained in:
Ellpeck 2016-11-12 23:10:41 +01:00
parent 83eb47787f
commit d058878d30
2 changed files with 7 additions and 0 deletions

View file

@ -62,4 +62,6 @@ public interface IBookletPage{
IBookletPage addTextReplacement(String key, String value);
IBookletPage addTextReplacement(String key, float value);
IBookletPage addTextReplacement(String key, int value);
}

View file

@ -166,4 +166,9 @@ public class BookletPage implements IBookletPage{
public BookletPage addTextReplacement(String key, float value){
return this.addTextReplacement(key, Float.toString(value));
}
@Override
public BookletPage addTextReplacement(String key, int value){
return this.addTextReplacement(key, Integer.toString(value));
}
}