类的使用
org.coodex.util.java8.StringJoiner
使用StringJoiner的程序包
-
org.coodex.util.java8中StringJoiner的使用
修饰符和类型方法说明StringJoiner.add(CharSequence newElement) Adds a copy of the givenCharSequencevalue as the next element of theStringJoinervalue.StringJoiner.merge(StringJoiner other) Adds the contents of the givenStringJoinerwithout prefix and suffix as the next element if it is non-empty.StringJoiner.setEmptyValue(CharSequence emptyValue) Sets the sequence of characters to be used when determining the string representation of thisStringJoinerand no elements have been added yet, that is, when it is empty.参数类型为StringJoiner的org.coodex.util.java8中的方法修饰符和类型方法说明StringJoiner.merge(StringJoiner other) Adds the contents of the givenStringJoinerwithout prefix and suffix as the next element if it is non-empty.