Class MapTypeSafeMatcher<M extends java.util.Map<?,​?>>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<M>, org.hamcrest.SelfDescribing
    Direct Known Subclasses:
    IsMapContainingKey, IsMapContainingValue

    public abstract class MapTypeSafeMatcher<M extends java.util.Map<?,​?>>
    extends org.hamcrest.BaseMatcher<M>
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.Object item)  
      protected abstract boolean matchesSafely​(M map)  
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.hamcrest.SelfDescribing

        describeTo
    • Constructor Detail

      • MapTypeSafeMatcher

        public MapTypeSafeMatcher()
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object item)
      • matchesSafely

        protected abstract boolean matchesSafely​(M map)