Class CacheTransferSourceCollection
Object
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CacheTransferSource<? extends FeatureInput> source) Adds a source.booleancontains(ChildCacheName name) Whether a particular child-cache exists in the source?The names of all child-caches that are made available.Iterator<CacheTransferSource<? extends FeatureInput>> iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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.
-