public FeatureIdAccessor(boolean cacheFeatures) { this.cacheFeatures = cacheFeatures; if (cacheFeatures) { featureCache = new SoftValueHashMap<String, SimpleFeature>(); } }
/** * Constructs an instance using the specified priority level. * * @param priority The priority for this factory, as a number between {@link * AbstractFactory#MINIMUM_PRIORITY MINIMUM_PRIORITY} and {@link * AbstractFactory#MAXIMUM_PRIORITY MAXIMUM_PRIORITY} inclusive. */ public NTv2GridShiftFactory(final int priority) { super(priority); ntv2GridCache = new SoftValueHashMap<String, GridShiftFile>(GRID_CACHE_HARD_REFERENCES); }
/** Constructs a factory with the default priority. */ public NTv2GridShiftFactory() { super(); ntv2GridCache = new SoftValueHashMap<String, GridShiftFile>(GRID_CACHE_HARD_REFERENCES); }
/** Constructs a factory with the default priority. */ public NADCONGridShiftFactory() { gridCache = new SoftValueHashMap<NADCONKey, NADConGridShift>(GRID_CACHE_HARD_REFERENCES); }
public BindingWalker(BindingLoader factory) { this.loader = factory; chains = new SoftValueHashMap(100); typeWalker = new TypeWalker(); }
static final class GeomClasses extends HashMap<Class, String> { private static final long serialVersionUID = -3359664692996608331L; public GeomClasses() { super(); put(Point.class, "POINT"); put(LineString.class, "LINE"); put(LinearRing.class, "LINE"); put(Polygon.class, "POLYGON"); put(GeometryCollection.class, "COLLECTION"); put(MultiPoint.class, "MULTIPOINT"); put(MultiLineString.class, "MULTILINE"); put(MultiPolygon.class, "MULTIPOLYGON"); } }
public FeatureIdAccessor(boolean cacheFeatures) { this.cacheFeatures = cacheFeatures; if(cacheFeatures) { featureCache = new SoftValueHashMap<String, SimpleFeature>(); } }
public FileItemCache(int maxHardReferences) { cache = new SoftValueHashMap<String, CacheItem<T>>(maxHardReferences); }
new SoftValueHashMap<>(1000);