Package org.apache.wicket.util.diff
Class ToString
- java.lang.Object
-
- org.apache.wicket.util.diff.ToString
-
-
Constructor Summary
Constructors Constructor Description ToString()Construct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringarrayToString(Object[] o)Converts an array ofObjectto a string Use the value of theline.separatorsystem property the line separator.static StringarrayToString(Object[] o, String EOL)Converts an array ofObjectto a string using the given line separator.static String[]stringToArray(String value)Breaks a string into an array of strings.StringtoString()Default implementation of thetoString()method that delegates work to aStringBufferbase version.voidtoString(StringBuilder s)Place a string image of the object in a StringBuffer.
-
-
-
Constructor Detail
-
ToString
public ToString()
Construct.
-
-
Method Detail
-
toString
public String toString()
Default implementation of thetoString()method that delegates work to aStringBufferbase version.
-
toString
public void toString(StringBuilder s)
Place a string image of the object in a StringBuffer.- Parameters:
s- the string buffer.
-
stringToArray
public static String[] stringToArray(String value)
Breaks a string into an array of strings. Use the value of theline.separatorsystem property as the linebreak character.- Parameters:
value- the string to convert.- Returns:
- String[]
-
arrayToString
public static String arrayToString(Object[] o)
Converts an array ofObjectto a string Use the value of theline.separatorsystem property the line separator.- Parameters:
o- the array of objects.- Returns:
- String
-
arrayToString
public static String arrayToString(Object[] o, String EOL)
Converts an array ofObjectto a string using the given line separator.- Parameters:
o- the array of objects.EOL- the string to use as line separator.- Returns:
- String
-
-