需要从一个对象连续获取值的时候 ``` String username = Optional.ofNullable(people).map(People::getName).orElse(null); ```