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 Histogram
createFromHistogram
(Histogram histogram) Creates aHistogram
given the entity provided by the delegate.get()
Gets or creates an object of typeT
.The delegateHistogramProvider
that is called.void
setHistogram
(HistogramProvider histogram) The delegateHistogramProvider
that is called.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods 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:Provider
Gets 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 aHistogram
given the entity provided by the delegate.- Parameters:
histogram
- the entity provided by the delegate.- Returns:
- the created
Histogram
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getHistogram
The delegateHistogramProvider
that is called. -
setHistogram
The delegateHistogramProvider
that is called.
-