Package org.sosy_lab.common.configuration.converters
@CheckReturnValue
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
@FieldsAreNonnullByDefault
package org.sosy_lab.common.configuration.converters
This package provides the possibility to convert String values into appropriate objects of
certain types. This is used by the
Configuration class
to convert configuration options into objects before injecting them. The primary interface is
TypeConverter, and some default
implementations for commonly-used classes are also provided.-
ClassDescriptionA
TypeConverterwhich handles all the trivial cases like ints, Strings, log levels, regexps, etc.ATypeConverterfor options of typeFileorPathwhich offers some additional features like a common base directory for all output files.Type converter for options of types Integer/Long annotated withIntegerOption(not for integer options without this annotation).Type converter for options annotated withTimeSpanOption.TypeConverters are used to parse Strings into instances of specific types during configuration option injection as performed byConfiguration.inject(Object).