Class ToArrayUtil


  • public final class ToArrayUtil
    extends Object
    • Method Detail

      • toArray

        public static Object[] toArray​(Object o)
        Accepts and object and return an array of Object when the object is an array. null is returned otherwise
        Parameters:
        o - is an object whisch is supposed to be an array
        Returns:
        an array of Object when given object is an array. null is returned otherwise
      • stringValueOfObjectOrArray

        public static String stringValueOfObjectOrArray​(Object o)
        Returns string value of an array or an object.
        Parameters:
        o - is an object to get string value from
        Returns:
        string value of an array or of an object