1
0
Fork 0

Fix composite parser arguments

This commit is contained in:
John Ahlroos 2021-04-25 09:09:29 +03:00
parent e50b25567f
commit 8d75f2cb48
Signed by: john
GPG Key ID: 258D0F70DB84CD5D
2 changed files with 16 additions and 2 deletions

View File

@ -36,6 +36,20 @@ public class Parser {
public double transferNightTotal = 0.0;
public int transferNightKwh = 0;
public double tax = 0.0;
@Override
public String toString() {
return "Period{" +
"basicPay=" + basicPay +
", transferDayPrice=" + transferDayPrice +
", transferDayTotal=" + transferDayTotal +
", transferDayKwh=" + transferDayKwh +
", transferNightPrice=" + transferNightPrice +
", transferNightTotal=" + transferNightTotal +
", transferNightKwh=" + transferNightKwh +
", tax=" + tax +
'}';
}
}
public static void main(String[] args) {

View File

@ -9,8 +9,8 @@ import java.util.stream.Collectors;
public class CarunaHelenParser {
public static void main(String[] args) {
var carunaFile = Path.of("/home/john/Downloads/caruna-lasku.pdf");
var helenFile = Path.of("/home/john/Downloads/helen-lasku.pdf");
var carunaFile = Path.of(args[0]);
var helenFile = Path.of(args[1]);
var carunaPeriods = com.devsoap.parsers.caruna.Parser.parse(carunaFile);
var nightSiirto = carunaPeriods.entrySet().stream()