Fixed last new methods.

This commit is contained in:
Christian P. MOMON 2017-12-28 05:08:36 +01:00
parent 8d35dd6eb6
commit 026772bea2

View file

@ -117,7 +117,31 @@ public class StringsUtils
{
boolean result;
result = new StringList(strings).contains(token);
boolean ended = false;
int index = 0;
result = false;
while (!ended)
{
if (index < strings.length)
{
String current = strings[index];
if (StringUtils.contains(token, current))
{
ended = true;
result = true;
}
else
{
index += 1;
}
}
else
{
ended = true;
result = false;
}
}
//
return result;
@ -136,7 +160,31 @@ public class StringsUtils
{
boolean result;
result = new StringList(strings).containsIgnoreCase(token);
boolean ended = false;
int index = 0;
result = false;
while (!ended)
{
if (index < strings.length)
{
String current = strings[index];
if (StringUtils.containsIgnoreCase(token, current))
{
ended = true;
result = true;
}
else
{
index += 1;
}
}
else
{
ended = true;
result = false;
}
}
//
return result;