T - templated GeoPackage objectpublic abstract class GeoPackageCoreCache<T extends GeoPackageCore> extends Object
| Constructor and Description |
|---|
GeoPackageCoreCache()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T geoPackage)
Add a GeoPackage to the cache
|
void |
clear()
Clears all cached GeoPackages but does not close them, call
closeAll() to close and clear all GeoPackages |
void |
close(Collection<String> names)
Close GeoPackages with names
|
boolean |
close(String name)
Close the GeoPackage with name
|
void |
closeAll()
Close all GeoPackages in the cache
|
void |
closeRetain(Collection<String> retain)
Close GeoPackages not specified in the retain GeoPackage names
|
boolean |
exists(String name)
Checks if the GeoPackage name exists in the cache
|
T |
get(String name)
Get the GeoPackage with name
|
Collection<T> |
getGeoPackages()
Get the cached GeoPackages
|
Set<String> |
getNames()
Get the names of the cached GeoPackages
|
T |
remove(String name)
Remove the GeoPackage with the name but does not close it, call
close(String) to close and remove |
boolean |
removeAndClose(String name)
Remove and close the GeoPackage with name, same as
close(String) |
public Set<String> getNames()
public Collection<T> getGeoPackages()
public T get(String name)
name - public boolean exists(String name)
name - public void closeAll()
public void add(T geoPackage)
geoPackage - public T remove(String name)
close(String) to close and removename - public void clear()
closeAll() to close and clear all GeoPackagespublic boolean removeAndClose(String name)
close(String)name - public boolean close(String name)
name - public void closeRetain(Collection<String> retain)
retain - public void close(Collection<String> names)
names - Copyright © 2016 National Geospatial-Intelligence Agency. All rights reserved.