Package com.nuix.superutilities.misc
Class PrimitiveTypeParser
- java.lang.Object
-
- com.nuix.superutilities.misc.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
-
Constructor Summary
Constructors Constructor Description PrimitiveTypeParser()
-
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)
-
-
-
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
-
-
Method Detail
-
buildStandardCopy
public static PrimitiveTypeParser buildStandardCopy()
-
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)
-
-