Example usage for org.apache.commons.lang.text StrBuilder appendSeparator

List of usage examples for org.apache.commons.lang.text StrBuilder appendSeparator

Introduction

In this page you can find the example usage for org.apache.commons.lang.text StrBuilder appendSeparator.

Prototype

public StrBuilder appendSeparator(char separator, int loopIndex) 

Source Link

Document

Appends a separator to the builder if the loop index is greater than zero.

Usage

From source file:com.mgmtp.perfload.perfmon.util.PerfMonUtils.java

/**
 * Appends a line break if the specified index is greater than 0.
 * //from  ww  w.j a  va2  s  .  c  o m
 * @param buffer
 *            the buffer to append to
 * @param index
 *            the index
 * @see StrBuilder#appendSeparator(String, int)
 */
public static void appendLineBreak(final StrBuilder buffer, final int index) {
    buffer.appendSeparator(LINE_SEP, index);
}