com.emarsys.ecommon.util
Class CollectionToStringBuilder

java.lang.Object
  extended by com.emarsys.ecommon.util.ToStringBuilder
      extended by com.emarsys.ecommon.util.CollectionToStringBuilder

public class CollectionToStringBuilder
extends ToStringBuilder

A ToStringBuilder for Collections and Arrays.

Author:
Michael "kULO" Kulovits

Field Summary
static char DELIM
           
 
Fields inherited from class com.emarsys.ecommon.util.ToStringBuilder
buf, delim
 
Constructor Summary
CollectionToStringBuilder()
           
CollectionToStringBuilder(char delim)
           
 
Method Summary
 ToStringBuilder add(java.lang.Object o)
          Appends the String representation of the passed Object to this ToStringBuilder WITHOUT using a delimiter to seperate it from other toString arguments.
 ToStringBuilder append(java.lang.Object o)
          Appends the String representation of the passed Object to this ToStringBuilder.
 java.lang.String toString()
           
 
Methods inherited from class com.emarsys.ecommon.util.ToStringBuilder
add, addAll, append, append, append, appendAll, appendAll, getBestFitInstance, getDefaultInstance, getDelimiter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIM

public static final char DELIM
See Also:
Constant Field Values
Constructor Detail

CollectionToStringBuilder

public CollectionToStringBuilder()

CollectionToStringBuilder

public CollectionToStringBuilder(char delim)
Parameters:
delim -
Method Detail

add

public ToStringBuilder add(java.lang.Object o)
Description copied from class: ToStringBuilder
Appends the String representation of the passed Object to this ToStringBuilder WITHOUT using a delimiter to seperate it from other toString arguments.

Overrides:
add in class ToStringBuilder
Returns:
this ToStringBuilder

append

public ToStringBuilder append(java.lang.Object o)
Description copied from class: ToStringBuilder
Appends the String representation of the passed Object to this ToStringBuilder. If its not the first call a ToStringBuilder.DELIMiter will be used to seperate the Strings.

Overrides:
append in class ToStringBuilder
Returns:
this ToStringBuilder

toString

public java.lang.String toString()
Overrides:
toString in class ToStringBuilder
See Also:
ToStringBuilder.toString()


Copyright © 2010 emarsys AG. All Rights Reserved.