Skip to content

Instantly share code, notes, and snippets.

@jefperito
Last active August 29, 2015 13:57
Show Gist options
  • Save jefperito/9519952 to your computer and use it in GitHub Desktop.
Save jefperito/9519952 to your computer and use it in GitHub Desktop.
public class Google {
private List<Linha> linhas;
public Google(String nomeArquivo) {
// ...
}
public List<Registro> obtemRegistros() {
List<Registro> registros = new ArrayList<>();
for (Linha linha : linhas) {
Registro registro = new Registro();
registro.setTipo("Google");
// outras info
registros.add(registro);
}
return registros;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment