Class ObjectToStringConverter


  • public class ObjectToStringConverter
    extends Object
    • Constructor Detail

      • ObjectToStringConverter

        public ObjectToStringConverter()
    • Method Detail

      • join

        public String join​(Iterator iterator,
                           String delimiter)
        Joints the elements accessed by the iterator. For each element, the toString(Object) method is called.
        Parameters:
        iterator - An iterator that access the objects that are joint in a string.
        delimiter - The delimiter that is used between each element.
        Returns:
        The joint string of the elements.
      • join

        public String join​(Object[] values,
                           String delimiter)
        Joints the elements of the array of objects. For each element, the toString(Object) method is called.
        Parameters:
        values - An array of elements that are joint in a string.
        delimiter - The delimiter that is used between each element.
        Returns:
        The joint string of the elements.
      • join

        public String join​(String[] values,
                           String delimiter)
        Joints the elements of the array of strings.
        Parameters:
        values - An array of strings that are joint in a string.
        delimiter - The delimiter that is used between each element.
        Returns:
        The joint string of the elements.