Class ArrayUtil


  • public class ArrayUtil
    extends java.lang.Object
    An utility class for Array manipulations.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ArrayUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] dropFromEndWhile​(java.lang.String[] array, java.lang.String regex)
      Process an array of String and get rid of every Strings after an empty on.
      • Methods inherited from class java.lang.Object

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

      • ArrayUtil

        private ArrayUtil()
    • Method Detail

      • dropFromEndWhile

        public static java.lang.String[] dropFromEndWhile​(java.lang.String[] array,
                                                          java.lang.String regex)
        Process an array of String and get rid of every Strings after an empty on.
        Parameters:
        array - The String[] array to process
        regex - unused
        Returns:
        The resulting String[] which only contains non-empty Strings up to the first emtpy one