/** * Appends a separator if the builder is currently non-empty. * Appending a null separator will have no effect. * The separator is appended using {@link #append(String)}. * <p> * This method is useful for adding a separator each time around the * loop except the first. * <pre> * for (Iterator it = list.iterator(); it.hasNext(); ) { * appendSeparator(","); * append(it.next()); * } * </pre> * Note that for this simple example, you should use * {@link #appendWithSeparators(Collection, String)}. * * @param separator the separator to use, null means no separator * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendSeparator(String separator) { return appendSeparator(separator, null); }
/** * Appends a separator if the builder is currently non-empty. * Appending a null separator will have no effect. * The separator is appended using {@link #append(String)}. * <p> * This method is useful for adding a separator each time around the * loop except the first. * <pre> * for (Iterator it = list.iterator(); it.hasNext(); ) { * appendSeparator(","); * append(it.next()); * } * </pre> * Note that for this simple example, you should use * {@link #appendWithSeparators(Collection, String)}. * * @param separator the separator to use, null means no separator * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendSeparator(String separator) { return appendSeparator(separator, null); }
/** * Appends a separator if the builder is currently non-empty. * Appending a null separator will have no effect. * The separator is appended using {@link #append(String)}. * <p> * This method is useful for adding a separator each time around the * loop except the first. * <pre> * for (Iterator it = list.iterator(); it.hasNext(); ) { * appendSeparator(","); * append(it.next()); * } * </pre> * Note that for this simple example, you should use * {@link #appendWithSeparators(Collection, String)}. * * @param separator the separator to use, null means no separator * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendSeparator(String separator) { return appendSeparator(separator, null); }
/** * Appends a separator if the builder is currently non-empty. * Appending a null separator will have no effect. * The separator is appended using {@link #append(String)}. * <p> * This method is useful for adding a separator each time around the * loop except the first. * <pre> * for (Iterator it = list.iterator(); it.hasNext(); ) { * appendSeparator(","); * append(it.next()); * } * </pre> * Note that for this simple example, you should use * {@link #appendWithSeparators(Collection, String)}. * * @param separator the separator to use, null means no separator * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendSeparator(String separator) { return appendSeparator(separator, null); }
/** * Appends a separator if the builder is currently non-empty. * Appending a null separator will have no effect. * The separator is appended using {@link #append(String)}. * <p> * This method is useful for adding a separator each time around the * loop except the first. * <pre> * for (Iterator it = list.iterator(); it.hasNext(); ) { * appendSeparator(","); * append(it.next()); * } * </pre> * Note that for this simple example, you should use * {@link #appendWithSeparators(Collection, String)}. * * @param separator the separator to use, null means no separator * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendSeparator(String separator) { return appendSeparator(separator, null); }
/** * Appends a separator if the builder is currently non-empty. * Appending a null separator will have no effect. * The separator is appended using {@link #append(String)}. * <p> * This method is useful for adding a separator each time around the * loop except the first. * <pre> * for (Iterator it = list.iterator(); it.hasNext(); ) { * appendSeparator(","); * append(it.next()); * } * </pre> * Note that for this simple example, you should use * {@link #appendWithSeparators(Collection, String)}. * * @param separator the separator to use, null means no separator * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendSeparator(String separator) { return appendSeparator(separator, null); }
for (StringLimitType l : mustBeFirst.keySet()) { StrBuilder tmp = new StrBuilder(); tmp.appendSeparator(", "); tmp.appendAll(mustBeFirst.get(l)); LOGGER.error("L:" + l.getDescription() + " -> [" + tmp + "]"); if (LOGGER.isDebugEnabled()) { StrBuilder tmp = new StrBuilder(); tmp.appendSeparator(", "); tmp.appendAll(intersectionCharacters); LOGGER.trace("Generate first character intersection items [" + tmp + "] into " + ctx.path + ".");