Мне нужно удалить запись на какое-то состояние, прежде чем у меня было:
Код: Выделить всё
map.entrySet()
.removeIf(matches -> getMinuteDiffrenceBetweenActualAndGivenDate(ChronoUnit.MINUTES, matches.getValue()
.getDateOfCreation()) >= 20);
Я пробовал сделать так:
Код: Выделить всё
map.entrySet().removeIf(matches -> matches.getValue().getValue()...
Подробнее здесь: https://stackoverflow.com/questions/578 ... nother-map