-
- All Implemented Interfaces:
-
leakcanary.HeapAnalysisInterceptor
public final class ConditionalInterceptor implements HeapAnalysisInterceptor
An interceptor that runs only when evaluateCondition returns true.
-
-
Constructor Summary
Constructors Constructor Description ConditionalInterceptor(HeapAnalysisInterceptor delegate, Function1<HeapAnalysisJob, Boolean> evaluateCondition)
-
Method Summary
Modifier and Type Method Description HeapAnalysisJob.Resultintercept(HeapAnalysisInterceptor.Chain chain)-
-
Constructor Detail
-
ConditionalInterceptor
ConditionalInterceptor(HeapAnalysisInterceptor delegate, Function1<HeapAnalysisJob, Boolean> evaluateCondition)
-
-
Method Detail
-
intercept
HeapAnalysisJob.Result intercept(HeapAnalysisInterceptor.Chain chain)
-
-
-
-