Java: simulating properties with Java 8 lambdas