Skip to content

Instantly share code, notes, and snippets.

View lluismf's full-sized avatar

Lluis Josep Martinez lluismf

  • T-Systems Iberia
  • Barcelona
View GitHub Profile
@lluismf
lluismf / c43.java
Last active November 9, 2017 17:37
Algorithm to detect gaps in C43 files
List<DCabeceraC43> headers = getHeadersSorted(toa);
DCabeceraC43 first = null;
DCabeceraC43 previous = null;
boolean dateErrors = false;
boolean balanceErrors = false;
for (DCabeceraC43 header : headers) {
if (first == null) {
/* Address */
"Address" = "Adreça";
/* Birth date of person */
"BirthDate" = "Data de Naixement";
/* Is birth date estimated? */
"BirthDate Estimated" = "Data de Naixement Estimada";
/* Error message */
/* Address */
"Address" = "Dirección";
/* Birth date of person */
"BirthDate" = "Fecha de Nacimiento";
/* Is birth date estimated? */
"BirthDate Estimated" = "Fecha de Nacimiento Estimada";
/* Error message */