🌈 搜索
📅  最后修改于: 2022-03-11 14:52:13.644000             🧑  作者: Mango
if (Stream.of(valueA, valueB, valueC, valueD).filter(Objects::nonNull).count() != 1) { /* throw error */ }