Interface QValueConverterDirectoryType
- All Known Implementing Classes:
QValueConverterDirectory
public interface QValueConverterDirectoryType
A directory of value converters.
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<QValueConverterType<T>> converterFor(Class<T> type) default <T> QValueConverterDirectoryTypewith(QValueConverterType<T> converter) Extend this value converter directory with the given converter, returning a new directory.with(Class<T> clazz, QValueConverterType<T> converter) Extend this value converter directory with the given converter, returning a new directory.
-
Method Details
-
converterFor
- Type Parameters:
T- The type- Parameters:
type- The type- Returns:
- A converter for the given class, if one exists
-
converters
Collection<QValueConverterType<?>> converters()- Returns:
- The set of converters in the directory
-
with
Extend this value converter directory with the given converter, returning a new directory.- Type Parameters:
T- The type- Parameters:
clazz- The classconverter- The converter- Returns:
- A new directory with the given converter
-
with
Extend this value converter directory with the given converter, returning a new directory.- Type Parameters:
T- The type- Parameters:
converter- The converter- Returns:
- A new directory with the given converter
-