Skip to content

Instantly share code, notes, and snippets.

@roberto-filho
Created September 1, 2015 12:35
Show Gist options
  • Save roberto-filho/8bd2113e86270e22a465 to your computer and use it in GitHub Desktop.
Save roberto-filho/8bd2113e86270e22a465 to your computer and use it in GitHub Desktop.
Percorrendo um multimap
// O multimap
Multimap<CFOP, BigDecimal> valores;
for(CFOP cfop : valores.keySet()) {
List<BigDecimal> total = valores.get(cfop);
BigDecimal soma = Helper.sum(total);
// Obtemos o valor do cfop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment