patterntesting.runtime.util
Class StringHelper

Package class diagram package StringHelper
java.lang.Object
  extended by patterntesting.runtime.util.StringHelper

public final class StringHelper
extends Object

This class contains some useful helper methods for Strings.

Since:
1.0 (02.04.2010)
Author:
oliver
See Also:
StringUtils

Method Summary
static boolean containsIgnoreCase(String[] names, String name)
          This helper method look in the given array, if there is a string with the given name (not case sensitive).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

containsIgnoreCase

public static boolean containsIgnoreCase(String[] names,
                                         String name)
This helper method look in the given array, if there is a string with the given name (not case sensitive).
NOTE: commons.lang.ArrayUtils provides a contains(..) method but unfortunately no containsIgnoreCase(..) method.

Parameters:
names - array with names
name - the searched name
Returns:
true, if name is inside names.
See Also:
ArrayUtils


Copyright © 2002–2014 PatternTesting Team. All rights reserved.