Class IsMapContainingValue<V>

java.lang.Object
org.hamcrest.BaseMatcher<Map<?,V>>
com.jayway.jsonassert.impl.matcher.MapTypeSafeMatcher<Map<?,V>>
com.jayway.jsonassert.impl.matcher.IsMapContainingValue<V>
All Implemented Interfaces:
org.hamcrest.Matcher<Map<?,V>>, org.hamcrest.SelfDescribing

public class IsMapContainingValue<V> extends MapTypeSafeMatcher<Map<?,V>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.hamcrest.Matcher<? super V>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsMapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    static <V> org.hamcrest.Matcher<? super Map<?,V>>
    hasValue(org.hamcrest.Matcher<? super V> valueMatcher)
     
    static <V> org.hamcrest.Matcher<? super Map<?,V>>
    hasValue(V value)
     
    boolean
    matchesSafely(Map<?,V> item)
     

    Methods inherited from class com.jayway.jsonassert.impl.matcher.MapTypeSafeMatcher

    matches

    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
  • Field Details

    • valueMatcher

      private final org.hamcrest.Matcher<? super V> valueMatcher
  • Constructor Details

    • IsMapContainingValue

      public IsMapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
  • Method Details

    • matchesSafely

      public boolean matchesSafely(Map<?,V> item)
      Specified by:
      matchesSafely in class MapTypeSafeMatcher<Map<?,V>>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • hasValue

      public static <V> org.hamcrest.Matcher<? super Map<?,V>> hasValue(V value)
    • hasValue

      public static <V> org.hamcrest.Matcher<? super Map<?,V>> hasValue(org.hamcrest.Matcher<? super V> valueMatcher)