public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
arrayToString(String[] array)
This takes a String[] and returns a String that can be converted
back into an identical String[] using the stringToArray method.
|
static String[] |
stringToArray(String str)
This takes a String in the form of that returned from the
arrayToString method and returns a String[].
|
public static String arrayToString(String[] array)
This takes a String[] and returns a String that can be converted back into an identical String[] using the stringToArray method.
The intended purpose of this is to possibly aid in implementing the getStringForm() method of the abstract NodeAddressID class.
array - the String[] to convert into a String.public static String[] stringToArray(String str)
This takes a String in the form of that returned from the arrayToString method and returns a String[].
The intended purpose of this is to possibly aid in implementing the getAddressIDFromString() method of the abstract NodeAddressID class.
str - the String to convert back into a String[].Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.