Commit 774651dd authored by Christian P. MOMON's avatar Christian P. MOMON
Browse files

Added upperCase, lowerCase methods in StringsUtils.

parent 06cf653d
......@@ -53,8 +53,8 @@ public class StringstUtils
/**
* Capitalize.
*
* @param source
* the source
* @param sourceStringUtils
* .lo the source
*/
public static void capitalize(final StringList source)
{
......@@ -590,6 +590,40 @@ public class StringstUtils
return result;
}
/**
* Lower case.
*
* @param source
* the source
*/
public static void lowerCase(final StringList source)
{
if (source != null)
{
for (int index = 0; index < source.size(); index++)
{
source.set(index, StringUtils.lowerCase(source.get(index)));
}
}
}
/**
* Lower case.
*
* @param source
* the source
*/
public static void lowerCase(final StringSet source)
{
if (source != null)
{
StringList values = new StringList(source);
lowerCase(values);
source.clear();
source.addAll(values);
}
}
/**
* Read.
*
......@@ -1303,4 +1337,32 @@ public class StringstUtils
//
return result;
}
/**
* Upper case.
*
* @param source
* the source
*/
public static void upperCase(final StringList source)
{
if (source != null)
{
for (int index = 0; index < source.size(); index++)
{
source.set(index, StringUtils.upperCase(source.get(index)));
}
}
}
public static void upperCase(final StringSet source)
{
if (source != null)
{
StringList values = new StringList(source);
upperCase(values);
source.clear();
source.addAll(values);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment