Package biz.aQute.bnd.reporter.helpers
Class ArrayHelper
- java.lang.Object
-
- biz.aQute.bnd.reporter.helpers.ArrayHelper
-
public class ArrayHelper extends java.lang.Object
SomeArray
utility functions.
-
-
Constructor Summary
Constructors Constructor Description ArrayHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsIgnoreCase(java.lang.String[] a, java.lang.String x)
static java.lang.String
oneInBoth(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 benull
x
- the value to look for, may benull
- Returns:
- true if
a
containsx
ignoring 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 benull
b
- 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
a
and theb
array or null if not found
-
-