mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Changed addTextReplacement to also accept ints
This commit is contained in:
parent
83eb47787f
commit
d058878d30
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue