Untitled
unknown
plain_text
3 months ago
842 B
8
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