Package org.jdbi.v3.guava
Class GuavaCollectors.Factory
java.lang.Object
org.jdbi.v3.guava.GuavaCollectors.Factory
- All Implemented Interfaces:
CollectorFactory
- Enclosing class:
- GuavaCollectors
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeVariable<Class<com.google.common.collect.Multimap>>private final TypeVariable<Class<com.google.common.collect.Multimap>> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
multimapKey
-
multimapValue
-
collectors
-
-
Constructor Details
-
Factory
Factory()
-
-
Method Details
-
accepts
Description copied from interface:CollectorFactoryAccept aTypeas a collector.- Specified by:
acceptsin interfaceCollectorFactory- Parameters:
containerType- the container type.- Returns:
- whether this factory can produce a collector for the given container type.
-
elementType
Description copied from interface:CollectorFactoryReturns the element type for a given container type.- Specified by:
elementTypein interfaceCollectorFactory- Parameters:
containerType- the container type.- Returns:
- the container element type if it can be discovered through reflection; empty otherwise.
- See Also:
-
build
Description copied from interface:CollectorFactoryCreates a collector for a given container type.- Specified by:
buildin interfaceCollectorFactory- Parameters:
containerType- the container type.- Returns:
- a
Collectorfor the given container type. - See Also:
-