Package biz.aQute.bnd.reporter.helpers
Class ArrayHelper
- java.lang.Object
-
- biz.aQute.bnd.reporter.helpers.ArrayHelper
-
public class ArrayHelper extends java.lang.ObjectSomeArrayutility functions.
-
-
Constructor Summary
Constructors Constructor Description ArrayHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsIgnoreCase(java.lang.String[] a, java.lang.String x)static java.lang.StringoneInBoth(java.lang.String[] a, java.lang.String[] b)
-
-
-
Method Detail
-
containsIgnoreCase
public static boolean containsIgnoreCase(java.lang.String[] a, java.lang.String x)- Parameters:
a- the array in which we search forx, may benullx- the value to look for, may benull- Returns:
- true if
acontainsxignoring case
-
oneInBoth
public static java.lang.String oneInBoth(java.lang.String[] a, java.lang.String[] b)- Parameters:
a- an array in which we search for a value which is also inb, may benullb- another array in which we search for a value which is also ina, may benull- Returns:
- any value (case insensitive) which is contained in both the
aand thebarray or null if not found
-
-