Example usage for com.google.common.collect Maps newHashMap

List of usage examples for com.google.common.collect Maps newHashMap

Introduction

In this page you can find the example usage for com.google.common.collect Maps newHashMap.

Prototype

public static <K, V> HashMap<K, V> newHashMap() 

Source Link

Document

Creates a mutable, empty HashMap instance.

Usage

From source file:com.querydsl.apt.SpatialSupport.java

private static void registerJTSTypes(TypeMappings typeMappings) {
    Map<String, String> additions = Maps.newHashMap();
    additions.put("Geometry", "JTSGeometryPath");
    additions.put("GeometryCollection", "JTSGeometryCollectionPath");
    additions.put("LinearRing", "JTSLinearRingPath");
    additions.put("LineString", "JTSLineStringPath");
    additions.put("MultiLineString", "JTSMultiLineStringPath");
    additions.put("MultiPoint", "JTSMultiPointPath");
    additions.put("MultiPolygon", "JTSMultiPolygonPath");
    additions.put("Point", "JTSPointPath");
    additions.put("Polygon", "JTSPolygonPath");
    for (Map.Entry<String, String> entry : additions.entrySet()) {
        typeMappings.register(new SimpleType("com.vividsolutions.jts.geom." + entry.getKey()),
                new SimpleType("com.querydsl.spatial.jts." + entry.getValue()));
    }/*from   w ww  .  j av  a  2 s  .co m*/
}

From source file:com.cloudera.exhibit.core.composite.UpdatableExhibit.java

public UpdatableExhibit(Exhibit base) {
    this.base = base;
    this.frames = Maps.newHashMap();
    this.descriptor = new UpdatableExhibitDescriptor(base.descriptor());
}