Class PrimitiveTypeParser


  • public class PrimitiveTypeParser
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.function.Function<java.lang.String,​java.lang.Object> booleanParser  
      static java.util.function.Function<java.lang.String,​java.lang.Object> decimalParser  
      static java.util.function.Function<java.lang.String,​java.lang.Object> durationAutomaticParsing  
      static java.util.function.Function<java.lang.String,​java.lang.Object> jodaTimeAutomaticParsing  
      static java.util.function.Function<java.lang.String,​java.lang.Object> numericParser  
      static java.util.function.Function<java.lang.String,​java.lang.Object> yesNoBooleanParser  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PrimitiveTypeParser buildStandardCopy()  
      void enrichInPlace​(java.util.Map<java.lang.String,​java.lang.Object> input)  
      java.lang.Object parse​(java.lang.String input)  
      java.util.Map<java.lang.String,​java.lang.Object> parseAndCopy​(java.util.Map<java.lang.String,​?> input)  
      java.util.Map<java.lang.String,​java.lang.Object> parseAndCopy​(java.util.Map<java.lang.String,​?> input, java.util.function.Function<java.lang.String,​java.lang.String> keyMapper)  
      java.lang.Object parseWithFallback​(java.lang.String input, java.lang.Object fallback)  
      • Methods inherited from class java.lang.Object

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

      • jodaTimeAutomaticParsing

        public static final java.util.function.Function<java.lang.String,​java.lang.Object> jodaTimeAutomaticParsing
      • durationAutomaticParsing

        public static final java.util.function.Function<java.lang.String,​java.lang.Object> durationAutomaticParsing
      • numericParser

        public static final java.util.function.Function<java.lang.String,​java.lang.Object> numericParser
      • decimalParser

        public static final java.util.function.Function<java.lang.String,​java.lang.Object> decimalParser
      • booleanParser

        public static final java.util.function.Function<java.lang.String,​java.lang.Object> booleanParser
      • yesNoBooleanParser

        public static final java.util.function.Function<java.lang.String,​java.lang.Object> yesNoBooleanParser
    • Constructor Detail

      • PrimitiveTypeParser

        public PrimitiveTypeParser()
    • Method Detail

      • parseWithFallback

        public java.lang.Object parseWithFallback​(java.lang.String input,
                                                  java.lang.Object fallback)
      • parse

        public java.lang.Object parse​(java.lang.String input)
      • enrichInPlace

        public void enrichInPlace​(java.util.Map<java.lang.String,​java.lang.Object> input)
      • parseAndCopy

        public java.util.Map<java.lang.String,​java.lang.Object> parseAndCopy​(java.util.Map<java.lang.String,​?> input)
      • parseAndCopy

        public java.util.Map<java.lang.String,​java.lang.Object> parseAndCopy​(java.util.Map<java.lang.String,​?> input,
                                                                                   java.util.function.Function<java.lang.String,​java.lang.String> keyMapper)