@SafeVarargs public static <S, T, U, V> MapMapMap<S, T, U, V> ofEntries( Map.Entry<S, MapMap<T, U, V>>... entries ) { MapMapMap<S, T, U, V> map = new MapMapMap<>(); for ( Map.Entry<S, MapMap<T, U, V>> entry : entries ) { map.put( entry.getKey(), entry.getValue() ); } return map; } }
public MapMap<T, U, V> putEntry( S key1, T key2, U key3, V value ) { MapMap<T, U, V> map = this.get( key1 ); map = map == null ? new MapMap<>() : map; map.putEntry( key2, key3, value ); return this.put( key1, map ); }
public void putEntries( S key1, MapMap<T, U, V> m ) { MapMap<T, U, V> map = this.get( key1 ); map = map == null ? new MapMap<>() : map; map.putMap( m ); this.put( key1, map ); }