Maps { public static <T> NavigableMap<String, T> toSortedMap( final String propertyPath, final Collection<T> collection ) { return toSortedMap( Typ.string, propertyPath, collection ); }  static List<V> lazyCreate( List<V> lazy ); static Map<K,V> lazyCreate( Map<K,V> lazy ); static Map<K,V> lazyCreate( HashMap<K,V> lazy ); static Map<K,V> lazyCreate( LinkedHashMap<K,V> lazy ); static Map<K,V> lazyCreateLinked( Map<K,V> lazy ); static Map<K,V> lazyCreate( ConcurrentHashMap<K,V> lazy ); static Map<K,V> lazyCreateSafe( Map<K,V> lazy ); static int lengthOf( Map<?, ?> map ); static V atIndex( Map<K, V> map, K k ); static SortedMap<K, V> sliceOf( NavigableMap<K, V> map, K startIndex, K endIndex ); static SortedMap<K, V> endSliceOf( NavigableMap<K, V> map, K fromKey ); static int len( Map<?, ?> map ); static boolean in( K key, Map<K, V> map ); static void add( Map<K, V> map, Entry<K, V> entry ); static V idx( Map<K, V> map, K k ); static void idx( Map<K, V> map, K k, V v ); static String idxStr( Map<K, V> map, K k ); static Integer idxInt( Map<K, V> map, K k ); static Long idxLong( Map<K, V> map, K k ); static Map idxMap( Map<K, V> map, K k ); static List idxList( Map<K, V> map, K k ); static long toLong( Map<K, V> map, K key ); static int toInt( Map<K, V> map, K key ); static SortedMap<K, V> copy( SortedMap<K, V> map ); static Map<K, V> copy( Map<K, V> map ); static V first( NavigableMap<K, V> map ); static V last( NavigableMap<K, V> map ); static V after( NavigableMap<K, V> map, final K index ); static V before( NavigableMap<K, V> map, final K index ); static SortedMap<K, V> slc( NavigableMap<K, V> map, K startIndex, K endIndex ); static SortedMap<K, V> slcEnd( NavigableMap<K, V> map, K fromKey ); static SortedMap<K, V> slc( NavigableMap<K, V> map, K toKey ); static boolean valueIn( V value, Map<K, V> map ); static Entry<K, V> entry( final K k, final V v ); static Entry<K, V> entry( Entry<K, V> entry ); static Map<?, ?> mapFromArray( Object... args ); static Map<K, V> map( Class<K> keyClass, Class<V> valueClass ); static Map<K, V> safeMap( Class<K> keyClass, Class<V> valueClass ); static Map<K, V> map( K k0, V v0 ); static Map<K, V> map( K k0, V v0, K k1, V v1 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13 ); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13,
                                        K k14, V v14); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13,
                                        K k14, V v14, K k15, V v15); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13,
                                        K k14, V v14, K k15, V v15, K k16, V v16); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13,
                                        K k14, V v14, K k15, V v15, K k16, V v16, K k17, V v17); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13,
                                        K k14, V v14, K k15, V v15, K k16, V v16, K k17, V v17,
                                        K k18, V v18); static Map<K, V> map( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                        V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                        K k9, V v9, K k10, V v10, K k11, V v11, K k12, V v12, K k13, V v13,
                                        K k14, V v14, K k15, V v15, K k16, V v16, K k17, V v17,
                                        K k18, V v18, K k19, V v19); static Map<K, V> map( List<K> keys, List<V> values ); static Map<K, V> map( LinkedHashSet<K> keys, LinkedHashSet<V> values ); static Map<K, V> map( Iterable<K> keys, Iterable<V> values ); static Map<K, V> map( K[] keys, V[] values ); @SafeVarargs static Map<K, V> map( Entry<K, V>... entries ); @SafeVarargs static Map<K, V> mapByEntries( Entry<K, V>... entries ); static NavigableMap<K, V> sortedMap( K k0, V v0 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8 ); static NavigableMap<K, V> sortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                                       K k9, V v9 ); static NavigableMap<K, V> sortedMap( Collection<K> keys, Collection<V> values ); static NavigableMap<K, V> sortedMap( Iterable<K> keys, Iterable<V> values ); static NavigableMap<K, V> sortedMap( K[] keys, V[] values ); static NavigableMap<K, V> sortedMap( List<Entry<K, V>> entries ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                       V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                                       K k9, V v9 ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, Collection<K> keys, Collection<V> values ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, K[] keys, V[] values ); static NavigableMap<K, V> sortedMap( Comparator<K> comparator, List<Entry<K, V>> entries ); static Map<K, V> safeMap( Map<K, V> map ); static Map<K, V> safeMap( K k0, V v0 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3, K k4, V v4 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3, K k4, V v4, K k5, V v5 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3, K k4, V v4, K k5, V v5, K k6, V v6 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8 ); static Map<K, V> safeMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                            V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                            K k9, V v9 ); static Map<K, V> safeMap( Collection<K> keys, Collection<V> values ); static Map<K, V> safeMap( Iterable<K> keys, Iterable<V> values ); static Map<K, V> safeMap( K[] keys, V[] values ); @SafeVarargs static Map<K, V> safeMap( Entry<K, V>... entries ); static NavigableMap<K, V> safeSortedMap( K k0, V v0 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8 ); static NavigableMap<K, V> safeSortedMap( K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                                           K k9, V v9 ); static NavigableMap<K, V> safeSortedMap( Collection<K> keys, Collection<V> values ); static NavigableMap<K, V> safeSortedMap( Iterable<K> keys, Iterable<V> values ); static NavigableMap<K, V> safeSortedMap( K[] keys, V[] values ); @SafeVarargs static NavigableMap<K, V> safeSortedMap( Entry<K, V>... entries ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K k0, V v0, K k1, V v1, K k2, V v2, K k3,
                                                           V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8,
                                                           K k9, V v9 ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, Collection<K> keys, Collection<V> values ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, K[] keys, V[] values ); static NavigableMap<K, V> safeSortedMap( Comparator<K> comparator, List<Entry<K, V>> entries ); @SuppressWarnings ( { "unchecked", "rawtypes" } ) static T idx( Class<T> clz, Map map, Object key ); static T fromMap( Map<String, Object> map, Class<T> clazz ); static Object fromMap( final Map<String, Object> map ); static Map<String, Object> toMap( final Object object ); static Map<String, List<T>> toMultiValueMap( final String propertyPath, final Collection<T> collection ); static Map<String, T> toMap( final String propertyPath, final Collection<T> collection ); static NavigableMap<String, T> toSortedMap( final String propertyPath, final Collection<T> collection ); static NavigableMap<String, T> toSafeSortedMap( final String propertyPath, final Collection<T> collection ); static Map<String, T> toSafeMap( final String propertyPath, final Collection<T> collection ); static Map<K, T> toMap( Class<K> keyType, final String propertyPath, final Collection<T> collection ); static NavigableMap<K, T> toSortedMap( Class<K> keyType, final String propertyPath, final Collection<T> collection ); static NavigableMap<K, T> toSafeSortedMap( Class<K> keyType, final String propertyPath, final Collection<T> collection ); static Map<K, T> toSafeMap( Class<K> keyType, final String propertyPath, final Collection<T> collection ); static void copyKeys(Collection<K> keys, Map<K, V> sourceMap, Map<K,V> destinationMap); static Map<K, V> copyKeys(Collection<K> keys, Map<K, V> sourceMap); static String asPrettyJsonString(Map<String, Object> map); static Map <String, Object> toPrettyMap(Object object);  }
@Test public void testToSortedMap() { final Map<String, Dog> dogMap = Maps.toSortedMap( "name", dogs ); validateForToMap( dogMap ); }