Class SimpleParser<T>
- java.lang.Object
-
- pro.taskana.common.internal.configuration.parser.SimpleParser<T>
-
- All Implemented Interfaces:
PropertyParser<T>
- Direct Known Subclasses:
CustomHolidayParser,LocalTimeIntervalParser
public class SimpleParser<T> extends Object implements PropertyParser<T>
-
-
Field Summary
-
Fields inherited from interface pro.taskana.common.internal.configuration.parser.PropertyParser
PROPERTY_INITIALIZER_BY_CLASS
-
-
Constructor Summary
Constructors Constructor Description SimpleParser(Class<?> targetClass, Function<String,T> parseFunction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getTargetClass()Optional<T>parse(String value, String separator, Type type)protected static List<String>splitStringAndTrimElements(String str, String separator)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pro.taskana.common.internal.configuration.parser.PropertyParser
parse, parse, validateTargetField
-
-
-
-
Method Detail
-
parse
public Optional<T> parse(String value, String separator, Type type)
- Specified by:
parsein interfacePropertyParser<T>
-
getTargetClass
public Class<?> getTargetClass()
- Specified by:
getTargetClassin interfacePropertyParser<T>
-
-