Class BuilderUtils
- java.lang.Object
-
- com.googlecode.wicket.jquery.core.utils.BuilderUtils
-
public class BuilderUtils extends Object
Utility class forStringBuilder- Author:
- Sebastien Briquet - sebfz1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappend(StringBuilder builder, String key, Object value)Helper method that appends a key/value JSON pair to the specified builder
The value will *not* be quoted, except if the value isnull,"null"will be returned.static voidappend(StringBuilder builder, String key, String value)Helper method that appends a key/value JSON pair to the specified builder.
-
-
-
Method Detail
-
append
public static void append(StringBuilder builder, String key, Object value)
Helper method that appends a key/value JSON pair to the specified builder
The value will *not* be quoted, except if the value isnull,"null"will be returned.- Parameters:
builder- theStringBuilderkey- the keyvalue- the object
-
append
public static void append(StringBuilder builder, String key, String value)
Helper method that appends a key/value JSON pair to the specified builder. The value will be quoted- Parameters:
builder- theStringBuilderkey- the keyvalue- the value
-
-