Skip to content

Template String Utility

iks github user edited this page Jul 15, 2014 · 1 revision

[Back] (https://github.com/iks-github/MOGLiCodeCreator/wiki/Using-MOGLiCC-template-utilities)


Method List

last update v1.3.0

public static boolean contains(java.lang.String text, java.lang.String searchString)

public boolean isStringValueSet(java.lang.String s)

public boolean isIntegerValueSet(java.lang.Integer i)

public boolean isNullString(java.lang.String s)

public boolean isBooleanValueSet(java.lang.Boolean b)

public static java.lang.String firstToUpperCase(java.lang.String string)

public static java.lang.String firstToLowerCase(java.lang.String string)

public static java.lang.String cutSuffix(java.lang.String stringToCutFrom, java.lang.String suffix)

public static java.lang.String cutLeadingChars(java.lang.String stringToCutFrom, int num)

public static java.lang.String addStrings(java.lang.String s1, java.lang.String s2)

public static boolean isListEmpty(java.util.List<java.lang.String> list)

public static java.lang.String toCommaSeparatedString(java.util.List<java.lang.String> list)

public static java.lang.String getNowAsTimeStamp()

public static java.lang.String getNowAsFormattedString(java.lang.String dateFormat)

since v1.3.0

public static java.lang.String getDateAsFormattedString(java.util.Date date, java.lang.String dateFormat)

dateFormat is used to instanciate a SimpleDateFormat object, e.g. "yyyy.MM.dd HHmm"

Returns e.g. "2013.06.06 1202"

since v1.3.0

public static java.lang.String replaceAllIn(java.lang.String containerString, java.lang.String toReplace, java.lang.String replacement)

Returns e.g. "com/iksgmbh/moglicc" for input "com.iksgmbh.moglicc", ".", "/"

since v1.3.0


[Back] (https://github.com/iks-github/MOGLiCodeCreator/wiki/Using-MOGLiCC-template-utilities)

Clone this wiki locally