[ This file is autogenerated from apexdoc ]
AqString
String utilities
AqString.format('SELECT {0} FROM {1}', AqString.formatList(fieldList), object);
Group apex/core
Fields
public EMPTY → String
public DOT → String
public DASH → String
public COMMA → String
public SPACE → String
public KEY_SEPARATOR → String
public CHARS → List<String>
Methods
public static String getRandomString(Integer length)
generate random string of specified length based on CHARS array
public static String left(String value, Integer length)
Use instead of String.left() if value might be null.
public static String valueOf(object value)
Get useful string value for object
public static String formatObjects(String stringToFormat, List<object> formattingArguments)
Format supporting object arguments instead of just strings.
public static String format(String stringToFormat, object arg1)
Convenient formatting with variable number of parameters
public static String format(String stringToFormat, object arg1, object arg2)
public static String format(String stringToFormat, object arg1, object arg2, object arg3)
public static String format(String stringToFormat, object arg1, object arg2, object arg3, object arg4)
public static String format(String stringToFormat, object arg1, object arg2, object arg3, object arg4, object arg5)
public static String formatSet(Set<object> objectSet)
Outputs all values in set
public static String formatSet(Set<SObjectField> objectSet)
Outputs all values in set
public static String formatList(List<object> objectList)
Outputs all values in list
public static String formatSet(Set<String> stringSet)
Outputs all string values in set
public static String formatList(List<String> stringList)
Outputs all string values in list
public static ID parseId(String value)
Converts string value to ID or throws error if it's not an ID
public static Id generateFakeSalesforceId(Schema sobjectType)
Generate a fake Salesforce Id
Parameters
| Param | Description |
|---|---|
sobjectType | Given sobject type for fake id |
Returns
| Type | Description |
|---|---|
Id | fake id |