Class GuavaCollectors

java.lang.Object
org.jdbi.v3.guava.GuavaCollectors

public class GuavaCollectors extends Object
Provides Collectors for Guava collection types.

Supported container types:

  • com.google.common.base.Optional<T> (throws an exception if more than one row in result)
  • com.google.common.collect.ImmutableList<T>
  • com.google.common.collect.ImmutableSet<T>
  • com.google.common.collect.ImmutableSortedSet<T extends Comparable>

Supported Maps and Multimaps types - for rows mapped to Map.Entry<K, V>:

  • com.google.common.collect.BiMap<K, V>
  • com.google.common.collect.ImmutableMap<K, V>
  • com.google.common.collect.Multimap<K, V>
  • com.google.common.collect.ListMultimap<K, V>
  • com.google.common.collect.ArrayListMultimap<K, V>
  • com.google.common.collect.LinkedListMultimap<K, V>
  • com.google.common.collect.SetMultimap<K, V>
  • com.google.common.collect.HashMultimap<K, V>
  • com.google.common.collect.TreeMultimap<K, V>
  • com.google.common.collect.ImmutableMultimap<K, V>
  • com.google.common.collect.ImmutableListMultimap<K, V>
  • com.google.common.collect.ImmutableSetMultimap<K, V>