Reviewed API for java 8