-2
How do I put the value of ipOrigem being a string? And also, without refactoring the method that has objects used in several others.
List<FileVO> arquivos = digitalizacaoVO.getArquivos();
Map<Long, List<FileVO>> arquivosMap = digitalizacaoVO.getArquivosMap();
String ipOrigem = digitalizacaoVO.getIpOrigem();
if(arquivos != null && !arquivos.isEmpty()) {
Long documentoId = documento != null ? documento.getId() : null;
arquivosMap = new HashMap<>();
arquivosMap.put(documentoId, arquivos);
}
What type of variable
digitalizacaoVO
? SimplydigitalizacaoVO.ipOrigem = novoIp
ordigitalizacaoVO.setIpOrigem(novoIp)
doesn’t work?– Costamilam
works, but what I need is for the value of this getIpOrigem(), to be mapped inside the fileMap. Right below I load the mapped values, play them inside an array list and then save the metadata of the image that was loaded. I don’t know if it’s clear...
– eduardo
Do you want to set the file and IP in Hashmap? Create a class with these two properties and use it
– Costamilam