List<OrdreReserveTakstol> reportBasis) {
Map<String, AntallSum> basisMap = new Hashtable<String, AntallSum>();
if (reportBasis != null) {
for (OrdreReserveTakstol order : reportBasis) {
String key = getKeyValue(order);
AntallSum antallSum = basisMap.get(key);
antallSum = antallSum == null ? new AntallSum() : antallSum;
antallSum.incrementNumberOf();
antallSum.add(order.getOwnProduction());
basisMap.put(key, antallSum);
}
}
return basisMap;
}