T
- input-type associated with cachepublic class CacheTransferSource<T extends FeatureInput> extends Object
Constructor and Description |
---|
CacheTransferSource(CacheSupplier<T,OperationFailedException> cacheToSearch,
Set<ChildCacheName> specificChildren) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsChild(ChildCacheName name)
Whether a particular child-cache exists in the source?
|
Set<ChildCacheName> |
getCacheNames()
The names of the child-caches that can be used as sources.
|
Optional<FeatureCalculationInput<T>> |
getInputIfPresent(T input)
Gets corresponding
FeatureCalculationInput for an input , if present, but
doesn't create any new entry if it's absent. |
public CacheTransferSource(CacheSupplier<T,OperationFailedException> cacheToSearch, Set<ChildCacheName> specificChildren)
public boolean containsChild(ChildCacheName name)
name
- the name of the child-cache.public Optional<FeatureCalculationInput<T>> getInputIfPresent(T input) throws OperationFailedException
FeatureCalculationInput
for an input
, if present, but
doesn't create any new entry if it's absent.input
- the input.Optional.empty()
otherwise.OperationFailedException
- if unable to get the cache that is searched.public Set<ChildCacheName> getCacheNames()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.