for (GuideEntry guideEntry : getGuideEntries()) { total += guideEntry.getPrice() * guideEntry.getQuantity(); }
for (final GuideEntry guideEntry : getGuideEntries()) { total = total.add(guideEntry.getPriceBigDecimal().multiply( BigDecimal.valueOf(guideEntry.getQuantity()))); }
    public void updateTotalValue() {        double total = 0;        for (GuideEntry guideEntry : getGuideEntries()) {            total += guideEntry.getPrice() * guideEntry.getQuantity();        }        setTotal(NumberUtils.formatNumber(total, 2));    }