Java Getter Functional Interface