Class CollectionStringifier
- java.lang.Object
-
- org.glassfish.admin.amx.util.stringifier.CollectionStringifier
-
- All Implemented Interfaces:
Stringifier
public class CollectionStringifier extends Object implements Stringifier
Creates a String representation of anCollection
- See Also:
Object.toString()
-
-
Field Summary
Fields Modifier and Type Field Description static CollectionStringifier
DEFAULT
String
mDelim
Stringifier
mElementStringifier
-
Constructor Summary
Constructors Constructor Description CollectionStringifier(String delim)
CollectionStringifier(String delim, Stringifier elementStringifier)
CollectionStringifier(Stringifier elementStringifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
stringify(Object o)
Produce a String representation of an object.static String
toString(Object o, String delim)
-
-
-
Field Detail
-
DEFAULT
public static final CollectionStringifier DEFAULT
-
mDelim
public final String mDelim
-
mElementStringifier
public final Stringifier mElementStringifier
-
-
Constructor Detail
-
CollectionStringifier
public CollectionStringifier(String delim)
-
CollectionStringifier
public CollectionStringifier(Stringifier elementStringifier)
-
CollectionStringifier
public CollectionStringifier(String delim, Stringifier elementStringifier)
-
-
Method Detail
-
stringify
public String stringify(Object o)
Description copied from interface:Stringifier
Produce a String representation of an object. The actual output has no other semantics; each Stringifier may choose to target a particular type of user.The resulting String should be suitable for display to a user.
- Specified by:
stringify
in interfaceStringifier
- Parameters:
o
- the Object for which a String should be produced
-
-