T
- object-typepublic class OperationMap<T> extends Object implements MultiInputSubMap<T>
Constructor and Description |
---|
OperationMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
StoreSupplier<T> op)
Adds an entry to the map
|
void |
addToStore(NamedProviderStore<T> namedStore,
Logger logger)
Copies all the existing entries into a
NamedProviderStore . |
StoreSupplier<T> |
get(String name)
Returns null if non-existent
|
Map<String,StoreSupplier<T>> |
getMap() |
public void add(String name, StoreSupplier<T> op)
MultiInputSubMap
add
in interface MultiInputSubMap<T>
public void addToStore(NamedProviderStore<T> namedStore, Logger logger) throws OperationFailedException
MultiInputSubMap
NamedProviderStore
.addToStore
in interface MultiInputSubMap<T>
logger
- a logger for any non-fatal errors. Fatal errors throw an exception.OperationFailedException
public StoreSupplier<T> get(String name) throws OperationFailedException
MultiInputSubMap
get
in interface MultiInputSubMap<T>
OperationFailedException
public Map<String,StoreSupplier<T>> getMap()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.