Optional.ofNullable(T value) ,该方法和 of 方法的区别在于,传入的参数可以为 null —— 但是前面javadoc 不是说 Optional 只能包含非 null 值吗?
確定! 回上一頁