pair.getValue().getMonth()>4 && pair.getValue().getMonth()<8
если лето это 6-8 месяц