Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
   
   
  
    
  
  
    
    
  
BoundedMatcher 
This package is part of the
Android support library  which
is no longer maintained.
The support library has been superseded by AndroidX 
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating  existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings . 
 
  public
  
  
  abstract
  class
  BoundedMatcher
  
  
  
  
    extends BaseMatcher<T>
  
  
  
  
  
  
  
    
    java.lang.Object 
     
  
  
    
         ↳ 
    
    org.hamcrest.BaseMatcher<T>
     
   
  
  
    
        
    
         ↳ 
    
    android.support.test.espresso.matcher.BoundedMatcher<T, S extends T>
     
   
  
  
    
      
          
  
     Known Direct Subclasses 
          
  
       
     
  
  
  
    
Some matcher sugar that lets you create a matcher for a given type but only process items of a
 specific subtype of that matcher.
Summary 
Inherited methods 
  
     From
class
  
    org.hamcrest.BaseMatcher
  
  
  
  
    
      
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      _dont_implement_Matcher___instead_extend_BaseMatcher_()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      describeMismatch(Object  arg0, Description arg1)
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        String 
    
      
      toString()
      
      
     
   
  
    
   
 
  
  
     From
class
  
    java.lang.Object 
  
  
  
  
    
      
  
  
  
  
    
        
        
        
        
        
        Object 
    
      
      clone()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        boolean
    
      
      equals(Object  arg0)
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      finalize()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        Class <?>
    
      
      getClass()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        int
    
      
      hashCode()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      notify()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      notifyAll()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        String 
    
      
      toString()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait(long arg0, int arg1)
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait(long arg0)
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait()
      
      
     
   
  
    
   
 
  
  
     From
interface
  
    org.hamcrest.Matcher
  
  
  
  
    
      
  
  
  
  
    
        abstract
        
        
        
        
        void
    
      
      _dont_implement_Matcher___instead_extend_BaseMatcher_()
      
      
     
   
  
  
  
  
  
    
        abstract
        
        
        
        
        void
    
      
      describeMismatch(Object  arg0, Description arg1)
      
      
     
   
  
  
  
  
  
    
        abstract
        
        
        
        
        boolean
    
      
      matches(Object  arg0)
      
      
     
   
  
    
   
 
  
  
     From
interface
  
    org.hamcrest.SelfDescribing
  
  
  
  
    
      
  
  
  
  
    
        abstract
        
        
        
        
        void
    
      
      describeTo(Description arg0)
      
      
     
   
  
    
   
 
  
Public constructors 
    BoundedMatcher 
    
BoundedMatcher (Class <? extends S> expectedType) 
    
    Parameters 
        expectedType
          Class  
       
    
 
    BoundedMatcher 
    
BoundedMatcher (Class <?> expectedType, 
                Class <?> interfaceType1, 
                Class... <?> otherInterfaces) 
    
    Parameters 
        expectedType
          Class  
       
      
        interfaceType1
          Class  
       
      
        otherInterfaces
          Class  
       
    
 
Public methods 
    matches 
    
boolean matches (Object  item) 
    
    
 
Protected methods 
    matchesSafely 
    
boolean matchesSafely (S item) 
    
    
 
 
 
  
  
     
  
    
    
      
       
    
    
  
  
 
  Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
 
 
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]