public class Util
extends java.lang.Object
#getMapFromItemsList(List) have been marked as DEPRECATED and will no longer support any
enhancements.
It is advised to use connector.common.Util for future
development.
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List |
asList(java.lang.Object o)
Deprecated.
|
static int |
atoi(java.lang.String a)
Deprecated.
|
static java.util.List<java.lang.String> |
convertStringToList(java.lang.String value,
java.lang.String delimiter)
Deprecated.
|
static java.util.Set<java.lang.String> |
convertStringToSet(java.lang.String value,
java.lang.String delimiter)
Deprecated.
|
static java.util.List<java.lang.String> |
csvToList(java.lang.String src)
Deprecated.
|
static java.util.Map<java.lang.String,java.lang.Object> |
getMapFromItemsList(java.util.List<Item> items)
This method fetches all attribute(items) from plan.
|
static java.lang.String |
getString(java.lang.String s)
Deprecated.
|
static java.lang.Object |
getValueFromMap(java.util.Map map,
java.lang.String name)
Deprecated.
|
static boolean |
isEmpty(java.util.Collection collection)
Deprecated.
|
static boolean |
isEmpty(java.util.Iterator i)
Deprecated.
|
static boolean |
isEmpty(java.util.Map map)
Return true if the specified map is empty.
|
static boolean |
isEmpty(java.lang.Object[] args)
Deprecated.
|
static boolean |
isEmpty(java.lang.String src)
Return true if the specified String is empty.
|
static boolean |
isIdentityNow()
This method tells us if the application is running on identityNow
isIdentityNow is system property we set in CCG main method
and we dont set this in case of identityIQ
|
static boolean |
isNotNullOrEmpty(java.lang.String str)
Deprecated.
|
static boolean |
isNullOrEmpty(java.lang.String str)
Deprecated.
|
static java.lang.String |
itoa(int i)
Deprecated.
|
static java.lang.String |
listToCsv(java.util.List list)
Convert a list of strings into a comma delimited list.
|
static java.lang.String |
listToCsv(java.util.List list,
boolean filterEmpty)
Deprecated.
|
static java.lang.String |
listToQuotedCsv(java.util.List list,
java.lang.Character quoteChar,
boolean filterEmpty)
Deprecated.
|
static java.lang.String |
listToQuotedCsv(java.util.List list,
java.lang.Character quoteChar,
boolean filterEmpty,
boolean conditionallyQuote)
Deprecated.
|
static java.lang.String |
listToQuotedCsv(java.util.List list,
java.lang.Character quoteChar,
boolean filterEmpty,
boolean conditionallyQuote,
boolean conditionallyAddSpace)
Deprecated.
|
static boolean |
otob(java.lang.Object o)
Deprecated.
|
static int |
otoi(java.lang.Object o)
Deprecated.
|
static java.lang.String |
otos(java.lang.Object o)
Deprecated.
|
static java.lang.String |
replaceCharacter(java.lang.String toReplace,
java.lang.String replaceWith,
java.lang.String str)
Deprecated.
|
@Deprecated public static int atoi(java.lang.String a)
Please make use of connector.common.Util#atoi(String).
@Deprecated public static int otoi(java.lang.Object o)
Please make use of connector.common.Util#otoi(Object).
@Deprecated public static java.lang.String itoa(int i)
Please make use of connector.common.Util#itoa(int).
@Deprecated public static boolean otob(java.lang.Object o)
Please make use of connector.common.Util#otob(Object).
@Deprecated public static java.lang.String otos(java.lang.Object o)
Please make use of connector.common.Util#otos(Object).
o - The object to convert to a string.public static java.util.Map<java.lang.String,java.lang.Object> getMapFromItemsList(java.util.List<Item> items)
@Deprecated
public static java.lang.Object getValueFromMap(java.util.Map map,
java.lang.String name)
Please make use of connector.common.Util#getValueFromMap(Map, String).
@Deprecated public static java.util.List<java.lang.String> csvToList(java.lang.String src)
Please make use of connector.common.Util#csvToList(String).
public static java.lang.String listToCsv(java.util.List list)
@Deprecated
public static java.lang.String listToCsv(java.util.List list,
boolean filterEmpty)
connector.common.Util#listToCsv(List, boolean).list - filterEmpty - @Deprecated
public static java.lang.String listToQuotedCsv(java.util.List list,
java.lang.Character quoteChar,
boolean filterEmpty)
Please make use of connector.common.Util#listToQuotedCsv(List, Character, boolean).
list - List of objects to be converted into a list of stringsquoteChar - Quote character in which to wrap the strings. Can be ', ", or null.
If null is specified no quotes will be appliedfilterEmpty - True to filter blank strings out of the list. False to include them@Deprecated
public static java.lang.String listToQuotedCsv(java.util.List list,
java.lang.Character quoteChar,
boolean filterEmpty,
boolean conditionallyQuote)
Please make use of connector.common.Util#listToQuotedCsv(List, Character, boolean, boolean).
conditionallyQuote - True prevents ALL strings from being quoted, and instead will only
quote ( escape ) the values that actually contain embedded commas.Util.listToQuotedCsv(List, Character, boolean)@Deprecated
public static java.lang.String listToQuotedCsv(java.util.List list,
java.lang.Character quoteChar,
boolean filterEmpty,
boolean conditionallyQuote,
boolean conditionallyAddSpace)
Please make use of connector.common.Util#listToQuotedCsv(List, Character, boolean, boolean, boolean).
list - List of objects to be converted into a list of stringsquoteChar - Quote character in which to wrap the strings. Can be ', ", or null.
If null is specified no quotes will be appliedfilterEmpty - True to filter blank strings out of the list. False to include themconditionallyQuote - If true it prevents ALL strings from being quoted, and instead will
only quote ( escape ) the values that actually contain embedded commas.conditionallyAddSpace - If true it appends a space before adding the next value.@Deprecated public static boolean isNullOrEmpty(java.lang.String str)
Please make use of connector.common.Util#isNullOrEmpty(String).
str - that needs to be checked for null or empty@Deprecated public static boolean isNotNullOrEmpty(java.lang.String str)
Please make use of connector.common.Util#isNotNullOrEmpty(String).
str - @Deprecated public static boolean isEmpty(java.util.Collection collection)
Please make use of connector.common.Util#isEmpty(Collection).
collection - @Deprecated public static boolean isEmpty(java.util.Iterator i)
Please make use of connector.common.Util#isEmpty(Iterator).
i - Iterator being checked@Deprecated public static boolean isEmpty(java.lang.Object[] args)
Please make use of connector.common.Util#isEmpty(Object[]).
args - array being checkedpublic static boolean isEmpty(java.util.Map map)
Please make use of connector.common.Util#isEmpty(Map).
map - Map being checkedpublic static boolean isEmpty(java.lang.String src)
Please make use of connector.common.Util#isEmpty(String).
src - String being checked@Deprecated public static java.util.List asList(java.lang.Object o)
Please make use of connector.common.Util#asList(Object).
o - The object to return as a list.@Deprecated public static java.lang.String getString(java.lang.String s)
Please make use of connector.common.Util#getString(String).
s - The String to filter.@Deprecated
public static java.util.List<java.lang.String> convertStringToList(java.lang.String value,
java.lang.String delimiter)
Please make use of connector.common.Util#convertStringToList(String, String).
value - delimiter - @Deprecated
public static java.util.Set<java.lang.String> convertStringToSet(java.lang.String value,
java.lang.String delimiter)
Please make use of connector.common.Util#convertStringToSet(String, String).
value - delimiter - @Deprecated
public static java.lang.String replaceCharacter(java.lang.String toReplace,
java.lang.String replaceWith,
java.lang.String str)
Please make use of connector.common.Util#replaceCharacter(String, String, String).
toReplace - - Variable to hold the value for the charecter to be replaced.replaceWith - - variable to hold the value for the charecter to which will replace.str - - A string whose value need to be changed.public static boolean isIdentityNow()