Package com.iizix.gyro
Interface IRuntimeImageCacheImpl
- All Superinterfaces:
- IRuntimeImageCache
The runtime image cache interface with code implementation, except the cache map instance.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- default voidClears the entire cache.- default RuntimeImageDefinitionGets an image definition from the image container from the cache.Gets the image cache hash table.- default boolean- removeImage- (String name) Removes an image with a name from the cache.- default boolean- setImage- (RuntimeImageDefinition image) Adds the image definition to the image container for the cache.
- Method Details- getImageContainerMap<String,- RuntimeImageDefinition> getImageContainer()Gets the image cache hash table. The instance is not synchronized.- Returns:
- Always the same instance of a Map.
 
- getImageGets an image definition from the image container from the cache.- Specified by:
- getImagein interface- IRuntimeImageCache
- Parameters:
- name- The image name.
- Returns:
- The predefined image definition, or null if not found.
 
- setImageAdds the image definition to the image container for the cache. If the image already exists, it is replaced with the new definition.- Specified by:
- setImagein interface- IRuntimeImageCache
- Parameters:
- image- The image definition.
- Returns:
- true if the container was changed, i.e. image was added or replaced, false for no change.
 
- removeImageRemoves an image with a name from the cache.- Specified by:
- removeImagein interface- IRuntimeImageCache
- Parameters:
- name- The image to remove.
- Returns:
- true for removed, false if not found.
 
- clearImageCachedefault void clearImageCache()Clears the entire cache.- Specified by:
- clearImageCachein interface- IRuntimeImageCache