Package 

Class MapParser

  • All Implemented Interfaces:
    kotlin.Function , kotlin.Function1

    
    public final class MapParser<K extends Object, V extends Object>
     implements Function1<String, Map<K, V>>
                        

    Parses a map from a string. the keyParser parses keys and the valueParser pareses values.

    Example property:

    your_prop=bar:1,foo:2

    • Constructor Summary

      Constructors 
      Constructor Description
      MapParser(Function1<String, K> keyParser, Function1<String, V> valueParser)
    • Method Summary

      Modifier and Type Method Description
      Map<K, V> invoke(String value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait