首页 > TAG信息列表 > skipNulls
Google Guava常用类-Joiner
例: Joiner joiner = Joiner.on("; ").skipNulls(); . . . return joiner.join("Harry", null, "Ron", "Hermione"); // Harry; Ron; Hermione 如果参数有null且没有用skipNulls()或useForNull(String)会抛NullPointerExceptionA appendTo(