Class Utils


  • public class Utils
    extends java.lang.Object
    Various helper methods.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String flatten​(java.lang.Object[] parts, java.lang.String sep)
      Flattens the array.
      static java.lang.String flatten​(java.util.List parts, java.lang.String sep)
      Flattens the list.
      • Methods inherited from class java.lang.Object

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

      • Utils

        public Utils()
    • Method Detail

      • flatten

        public static java.lang.String flatten​(java.util.List parts,
                                               java.lang.String sep)
        Flattens the list.
        Parameters:
        parts - the list to flatten
        sep - the separator to use
        Returns:
        the flattened array
      • flatten

        public static java.lang.String flatten​(java.lang.Object[] parts,
                                               java.lang.String sep)
        Flattens the array.
        Parameters:
        parts - the array to flatten
        sep - the separator to use
        Returns:
        the flattened array