Class QValueConverterDirectory
java.lang.Object
com.io7m.quarrel.core.QValueConverterDirectory
- All Implemented Interfaces:
QValueConverterDirectoryType
The default value converter directory.
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<QValueConverterType<T>> converterFor(Class<T> type) static QValueConverterDirectoryTypecore()static QValueConverterDirectoryTypeempty()with(Class<T> clazz, QValueConverterType<T> converter) Extend this value converter directory with the given converter, returning a new directory.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QValueConverterDirectoryType
with
-
Method Details
-
empty
- Returns:
- An empty value converter directory.
-
core
- Returns:
- A value converter directory containing a useful set of core types.
-
converterFor
- Specified by:
converterForin interfaceQValueConverterDirectoryType- Type Parameters:
T- The type- Parameters:
type- The type- Returns:
- A converter for the given class, if one exists
-
converters
- Specified by:
convertersin interfaceQValueConverterDirectoryType- Returns:
- The set of converters in the directory
-
with
Description copied from interface:QValueConverterDirectoryTypeExtend this value converter directory with the given converter, returning a new directory.- Specified by:
within interfaceQValueConverterDirectoryType- Type Parameters:
T- The type- Parameters:
clazz- The classconverter- The converter- Returns:
- A new directory with the given converter
-