Java Code Examples for org.apache.commons.lang.builder.ToStringStyle#MULTI_LINE_STYLE

The following examples show how to use org.apache.commons.lang.builder.ToStringStyle#MULTI_LINE_STYLE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeyValueSet.java    From hop with Apache License 2.0 5 votes vote down vote up
/**
 * @return string representation.
 */
public String toMultiLineString() {
  final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.MULTI_LINE_STYLE );
  for ( KeyValue<?> keyValue : this.entries.values() ) {
    builder.append( keyValue.getKey(), keyValue.getValue() );
  }
  return builder.toString();
}
 
Example 2
Source File: PredictionResultEntry.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {

    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    toStringBuilder.append("actionId", actionId)
            .append("messageId", messageId)
            .append("classValue", classValue)
            .append("probabilities", predictedClassProbability);

    return toStringBuilder.toString();
}
 
Example 3
Source File: FtpListener.java    From iaf with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
	String result = super.toString();
	ToStringBuilder ts = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
	ts.append("name", getName());
	ts.append("remoteDirectory", remoteDirectory);
	result += ts.toString();
	return result;

}
 
Example 4
Source File: FileRecordListener.java    From iaf with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
	String result = super.toString();
	ToStringBuilder ts = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
	ts.append("name", getName());
	ts.append("inputDirectory", getInputDirectory());
	ts.append("wildcard", getWildcard());
	result += ts.toString();
	return result;

}
 
Example 5
Source File: KeyValueSet.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
/**
 * @return string representation.
 */
public String toMultiLineString() {
  final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.MULTI_LINE_STYLE );
  for ( KeyValue<?> keyValue : this.entries.values() ) {
    builder.append( keyValue.getKey(), keyValue.getValue() );
  }
  return builder.toString();
}