Class Converters


  • public final class Converters
    extends java.lang.Object
    Helper class for converters
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <SOURCE,​TARGET>
      java.util.List<TARGET>
      convertAll​(java.util.Collection<? extends SOURCE> sourceList, Converter<SOURCE,​TARGET> converter)
      Convert all the items in the source list using a converter.
      • Methods inherited from class java.lang.Object

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

      • convertAll

        public static <SOURCE,​TARGET> java.util.List<TARGET> convertAll​(java.util.Collection<? extends SOURCE> sourceList,
                                                                              Converter<SOURCE,​TARGET> converter)
        Convert all the items in the source list using a converter.
        Type Parameters:
        SOURCE - The type of the source objects.
        TARGET - The type of the converted objects.
        Parameters:
        sourceList - The source list of objects to convert.
        converter - The converter to use to convert the source objects.
        Returns:
        The list of converted objects.
        See Also:
        Converter.convertAll(Collection), Converter.convertAllIgnoreExceptions(Collection)