public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
arrayToString(java.lang.String[] array)
This takes a String[] and returns a String that can be converted
back into an identical String[] using the stringToArray method.
|
static java.lang.String[] |
stringToArray(java.lang.String str)
This takes a String in the form of that returned from the
arrayToString method and returns a String[].
|
public static java.lang.String arrayToString(java.lang.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 java.lang.String[] stringToArray(java.lang.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[].Copyright © 1996–2019. All rights reserved.