문제점 : Stream 활용하던 중 메서드를 활용할 수 없는 문제
원인 : 제네릭, Stream 사용의 미숙함
문제였던 코드 : a.get 메서드가 실행이 안됐었으나, 명시적 형변환을 통해 해결
해결 전 : getFromMember()에 빨간글씨
People = People.stream()
.sorted(Comparator.comparingInt(a -> a.getFromMember().getToPeople().size())
.thenComparing(a -> a.getCreateDate()))
.collect(Collectors.toList());
People = People.stream()
.sorted(Comparator.comparingInt((person)a -> a.getFromMember().getToPeople().size())
.thenComparing(a -> a.getCreateDate()))
.collect(Collectors.toList());