- All Known Subinterfaces:
Bucket,Clock,Counter,DistributionStatisticsConfig,DistributionStatisticsConfig.Builder,DistributionSummary,FunctionalCounter,Gauge<N>,HistogramSnapshot,Meter,MeterRegistry,Tag,Timer,ValueAtPercentile
public interface Wrapper
Behavior of a type that wraps a related type, typically through delegation.
-
Method Summary
-
Method Details
-
unwrap
Unwraps the delegate as the specified type.- Type Parameters:
R- type to cast to- Parameters:
c-Classto which to cast the delegate- Returns:
- the delegate cast as the requested type
- Throws:
ClassCastException- if the delegate is not compatible with the requested type
-