@ThreadSafe @Singleton public final class ImageDataManager extends Object
| Modifier and Type | Method and Description |
|---|---|
EChange |
clearCache()
Remove all cached elements
|
EChange |
clearCachedSize(IReadableResource aRes)
Remove a single resource from the cache.
|
Map<IReadableResource,SizeInt> |
getAllCachedSizes() |
Set<IReadableResource> |
getAllNotExistingResources() |
SizeInt |
getImageSize(IReadableResource aRes) |
static ImageDataManager |
getInstance() |
static boolean |
isInstantiated() |
public static boolean isInstantiated()
@Nonnull public static ImageDataManager getInstance()
@Nullable public SizeInt getImageSize(@Nullable IReadableResource aRes)
@Nonnull public EChange clearCachedSize(@Nullable IReadableResource aRes)
aRes - The resource to be removed. May be null.null.@Nonnull public EChange clearCache()
EChange - never null@Nonnull @ReturnsMutableCopy public Map<IReadableResource,SizeInt> getAllCachedSizes()
@Nonnull @ReturnsMutableCopy public Set<IReadableResource> getAllNotExistingResources()
Copyright © 2014–2015 Philip Helger. All rights reserved.