com.emarsys.ecommon.util
Class CollectionToStringBuilder
java.lang.Object
com.emarsys.ecommon.util.ToStringBuilder
com.emarsys.ecommon.util.CollectionToStringBuilder
public class CollectionToStringBuilder
- extends ToStringBuilder
A ToStringBuilder
for Collection
s and
Array
s.
- Author:
- Michael "kULO" Kulovits
Field Summary |
static char |
DELIM
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DELIM
public static final char DELIM
- See Also:
- Constant Field Values
CollectionToStringBuilder
public CollectionToStringBuilder()
CollectionToStringBuilder
public CollectionToStringBuilder(char delim)
- Parameters:
delim
-
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.DELIM
iter will be used
to seperate the String
s.
- 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.