Package org.apache.hadoop.hbase
Class MatcherPredicate<T>
java.lang.Object
org.apache.hadoop.hbase.MatcherPredicate<T>
- Type Parameters:
- T- The type of value to be evaluated via- Matcher.
- All Implemented Interfaces:
- Waiter.ExplainingPredicate<RuntimeException>,- Waiter.Predicate<RuntimeException>
@Private
public class MatcherPredicate<T>
extends Object
implements Waiter.ExplainingPredicate<RuntimeException>
An implementation of 
Waiter.ExplainingPredicate that uses Hamcrest Matcher for
 both predicate evaluation and explanation.- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionMatcherPredicate(String reason, Supplier<T> supplier, org.hamcrest.Matcher<? super T> matcher) MatcherPredicate(Supplier<T> supplier, org.hamcrest.Matcher<? super T> matcher) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanevaluate()Perform a predicate evaluation.Perform a predicate evaluation.
- 
Field Details- 
reason
- 
supplier
- 
matcher
- 
currentValue
 
- 
- 
Constructor Details- 
MatcherPredicate
- 
MatcherPredicatepublic MatcherPredicate(String reason, Supplier<T> supplier, org.hamcrest.Matcher<? super T> matcher) 
 
- 
- 
Method Details- 
evaluateDescription copied from interface:Waiter.PredicatePerform a predicate evaluation.- Specified by:
- evaluatein interface- Waiter.Predicate<T>
- Returns:
- the boolean result of the evaluation.
 
- 
explainFailureDescription copied from interface:Waiter.ExplainingPredicatePerform a predicate evaluation.- Specified by:
- explainFailurein interface- Waiter.ExplainingPredicate<T>
- Returns:
- explanation of failed state
 
 
-