Skip to content

Instantly share code, notes, and snippets.

@edermfl
Last active November 16, 2016 19:31
Show Gist options
  • Save edermfl/3af1c58b77212b8c5a2cdd6ac5ab7fa9 to your computer and use it in GitHub Desktop.
Save edermfl/3af1c58b77212b8c5a2cdd6ac5ab7fa9 to your computer and use it in GitHub Desktop.
public class Nf {
Integer numero;
List<Item> itens;
Cliente cliente;
public Nf(Integer numero){
this.numero = numero;
itens = new ArrayList<Item>();
}
void adicionarItem(Item item) {
itens.add(item);
}
void setCliente(Cliente cliente) {
this.cliente = cliente;
}
void gerarNf() {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment