Class NonSplittingSplitter

  • All Implemented Interfaces:

    public class NonSplittingSplitter
    extends java.lang.Object
    implements com.beust.jcommander.converters.IParameterSplitter
    A form of Config that is generated by looking at fields in the constructor arg that are annotated with ConfigValue. The class hierarchy is walked from closest to Object to the constructor argument's type, null values are ignored, and the order in which fields are read is not stable (meaning duplicate config values may give different values each time).

    The main use of this class is to allow an object configured using (for example) jcommander to be used directly within the app, without requiring intermediate support classes to transform flags to config values.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> split​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

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

      • NonSplittingSplitter

        public NonSplittingSplitter()
    • Method Detail

      • split

        public java.util.List<java.lang.String> split​(java.lang.String value)
        Specified by:
        split in interface com.beust.jcommander.converters.IParameterSplitter