Code example for MultimapBuilder.MultimapBuilderWithKeys

Methods: treeSetValues

0
public class MultimapBuilderTest extends TestCase {
 
  @GwtIncompatible("doesn't build without explicit type parameters on build() methods") 
  public void testGenerics() { 
    ListMultimap<String, Integer> a = MultimapBuilder.hashKeys().arrayListValues().build();
    SortedSetMultimap<String, Integer> b = MultimapBuilder.linkedHashKeys().treeSetValues().build();
    SetMultimap<String, Integer> c =
        MultimapBuilder.treeKeys(String.CASE_INSENSITIVE_ORDER).hashSetValues().build();
  } 
 
  public void testGenerics_gwtCompatible() { 
    ListMultimap<String, Integer> a =
        MultimapBuilder.hashKeys().arrayListValues().<String, Integer>build();
    SortedSetMultimap<String, Integer> b =
        MultimapBuilder.linkedHashKeys().treeSetValues().<String, Integer>build();
    SetMultimap<String, Integer> c = MultimapBuilder.treeKeys(String.CASE_INSENSITIVE_ORDER)
        .hashSetValues().<String, Integer>build();
  } 
 
  @GwtIncompatible("doesn't build without explicit type parameters on build() methods") 
Connect your IDE to all the code out there  Get Codota for Java