|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.util.TypeUtil
public class TypeUtil
Convenience class for data type utility functions
| Constructor Summary | |
|---|---|
TypeUtil()
|
|
| Method Summary | |
|---|---|
static String[] |
appendArrayAssign(String[] sa,
String s)
Returns an array of Strings that results from appending a String to the end of a pre-existing array of Strings. |
static int |
equalsToCharInArray(char c,
char[] ca,
int i)
Returns index j of ca[] that verifies ca[j] == c, or -1 otherwise. |
static int |
indexOfStringInArray(String[] sa,
String s)
Determines the index of a given String in a String array. |
static String |
intToFormattedString(int i,
int n)
Returns a String representing the i number with at least n
digits. |
static String[] |
safeArrayAssign(String[] sa,
int i,
String s)
Assigns sa[i] = s, safely so if i>=sa.length it creates a new array with enough free space. |
static String[] |
stringArrayTrim(String[] a)
Trims a String array |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeUtil()
| Method Detail |
|---|
public static String[] stringArrayTrim(String[] a)
public static String[] appendArrayAssign(String[] sa,
String s)
public static String[] safeArrayAssign(String[] sa,
int i,
String s)
public static int equalsToCharInArray(char c,
char[] ca,
int i)
public static String intToFormattedString(int i,
int n)
i number with at least n
digits.
i - integern - number of digits
public static int indexOfStringInArray(String[] sa,
String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||