Class ArrayHelper


  • public class ArrayHelper
    extends java.lang.Object
    Some Array 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayHelper

        public ArrayHelper()
    • Method Detail

      • containsIgnoreCase

        public static boolean containsIgnoreCase​(java.lang.String[] a,
                                                 java.lang.String x)
        Parameters:
        a - the array in which we search for x, may be null
        x - the value to look for, may be null
        Returns:
        true if a contains x 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 in b, may be null
        b - another array in which we search for a value which is also in a, may be null
        Returns:
        any value (case insensitive) which is contained in both the a and the b array or null if not found