type-parser icon indicating copy to clipboard operation
type-parser copied to clipboard

Parses a string and converts it to another type. Supports all applicable java-library classes.

Results 5 type-parser issues
Sort by recently updated
recently updated
newest added

It would be great if the type parser could support date and time classes from the java.time library: - java.time.LocalDate - java.time.LocalTime - java.time.LocalDateTime

v0.8.1 release is now available through maven central! * New features, enhancements: * Add support for `java.util.Optional` [#40](https://github.com/drapostolos/type-parser/pull/40). See release info: https://github.com/drapostolos/type-parser/wiki/#changes Gradle ``` compile 'com.github.drapostolos:type-parser:0.8.1' ``` Maven ``` xml...

[announcement]

v0.7.0 release is now available through maven central! - Add support for `java.nio.file.Path`. - Code is now built with Java 8. - Internal refactorings/code improvements using Java8 features. See release...

[announcement]

Right now there's support for de-serializing types from a string, Would it be interesting to also be able to produce(by serializing) these strings from the type instances? parser.toString(listWithInt) parser.toString(listWithBoolean) parser.toString(mapOfStrings)...

enhancement-request

I would like the possibility to escape separators if they exist in the 'value': Examples: ``` java map = (Map) parser.parseType("hello1=1\\,23,hello2=321", type); List list = parser.parse("a\\,b,c", new GenericType() {}); ```

enhancement-request