Class CacheTransferSourceCollection
Object
org.anchoranalysis.feature.session.cache.finder.CacheTransferSourceCollection
- All Implemented Interfaces:
Iterable<CacheTransferSource<? extends FeatureInput>>
public class CacheTransferSourceCollection extends Object implements Iterable<CacheTransferSource<? extends FeatureInput>>
A collection of existing caches that can collectively be used as sources for child-caches
elsewhere.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description CacheTransferSourceCollection() -
Method Summary
Modifier and Type Method Description voidadd(CacheTransferSource<? extends FeatureInput> source)Adds a source.booleancontains(ChildCacheName name)Whether a particular child-cache exists in the source?Set<ChildCacheName>getAllCacheNames()The names of all child-caches that are made available.Iterator<CacheTransferSource<? extends FeatureInput>>iterator()
-
Constructor Details
-
CacheTransferSourceCollection
public CacheTransferSourceCollection()
-
-
Method Details
-
add
Adds a source.- Parameters:
source- the source to add.
-
contains
Whether a particular child-cache exists in the source?- Parameters:
name- the name of the child-cache.- Returns:
- true iff the child-cache exists.
-
iterator
- Specified by:
iteratorin interfaceIterable<CacheTransferSource<? extends FeatureInput>>
-
getAllCacheNames
The names of all child-caches that are made available.- Returns:
- a set of names, which should not be modified.
-