Class HistogramProviderUnary
- Direct Known Subclasses:
CutBelowThreshold,GreaterThanThreshold
Implementation of
HistogramProvider that calls a single delegate HistogramProvider.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract HistogramcreateFromHistogram(Histogram histogram) Creates aHistogramgiven the entity provided by the delegate.get()Gets or creates an object of typeT.The delegateHistogramProviderthat is called.voidsetHistogram(HistogramProvider histogram) The delegateHistogramProviderthat is called.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
HistogramProviderUnary
protected HistogramProviderUnary()
-
-
Method Details
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
createFromHistogram
protected abstract Histogram createFromHistogram(Histogram histogram) throws ProvisionFailedException Creates aHistogramgiven the entity provided by the delegate.- Parameters:
histogram- the entity provided by the delegate.- Returns:
- the created
Histogramthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getHistogram
The delegateHistogramProviderthat is called. -
setHistogram
The delegateHistogramProviderthat is called.
-