Class ValueParserConstants


  • public final class ValueParserConstants
    extends java.lang.Object
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <U> ValueParser<java.util.List<U>> multi​(ValueParser<U> parser, char delimiter)
      Returns a value parser parsing lists of values of type U.
      • Methods inherited from class java.lang.Object

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

      • multi

        public static <U> ValueParser<java.util.List<U>> multi​(ValueParser<U> parser,
                                                               char delimiter)
        Returns a value parser parsing lists of values of type U.
        Type Parameters:
        U - Element type of the target list
        Parameters:
        parser - Parser used to parse a single value
        delimiter - Char delimiting values
        Returns:
        A list of values