Untitled
unknown
plain_text
10 months ago
842 B
10
Indexable
private Map<BigInteger, String> mapFidoNumero(final List<Fido> array) {
int fidoProgressivoEssere = 0;
int fidoProgressivoRichiesta = 0;
Map<BigInteger, String> fidoMap = new HashMap<>();
for (Fido fr: array) {
if (fr.getParentKey() != null) {
if (!fidoMap.containsKey(fr.getIdElementoKey())) {
fr.setCodFidoFE("FE" + ++fidoProgressivoEssere);
fidoMap.put(fr.getIdElementoKey(), fr.getCodFidoFE());
}
} else {
if (!fidoMap.containsKey(fr.getIdElementoKey())) {
fr.setCodFidoFE("F" + ++fidoProgressivoRichiesta);
fidoMap.put(fr.getIdElementoKey(), fr.getCodFidoFE());
}
}
}
return fidoMap;
}Editor is loading...
Leave a Comment