org.jclouds.util
Class Multimaps2

java.lang.Object
  extended by org.jclouds.util.Multimaps2

public class Multimaps2
extends Object

Author:
Adrian Cole

Constructor Summary
Multimaps2()
           
 
Method Summary
static
<K,V> com.google.common.collect.ImmutableMultimap<K,V>
fromOldSchool(Map<K,Set<V>> in)
          Deprecated. 
static
<K,V> Map<K,Set<V>>
toOldSchool(com.google.common.collect.Multimap<K,V> in)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multimaps2

public Multimaps2()
Method Detail

toOldSchool

@Deprecated
public static <K,V> Map<K,Set<V>> toOldSchool(com.google.common.collect.Multimap<K,V> in)
Deprecated. 

The traditional way to represent a graph in Java is Map>, which is awkward in a number of ways. Guava's Multimap framework makes it easy to handle a mapping from keys to multiple values.

Until we write or discover a gson Multimap deserializer, we may be stuck with this. TODO: ask on stackoverflow and/or jesse wilson


fromOldSchool

@Deprecated
public static <K,V> com.google.common.collect.ImmutableMultimap<K,V> fromOldSchool(Map<K,Set<V>> in)
Deprecated. 

See Also:
toOldSchool(com.google.common.collect.Multimap)


Copyright © 2009-2012 jclouds. All Rights Reserved.