Class MapQuery.KeyValueFilter

  • All Implemented Interfaces:
    java.util.function.Predicate<java.util.Map>
    Enclosing class:
    MapQuery

    public static class MapQuery.KeyValueFilter
    extends java.lang.Object
    implements java.util.function.Predicate<java.util.Map>
    Filter for query
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValueFilter​(java.lang.String mapKey, MapQuery.KeyValueFilter.Cond cond, java.lang.Object value)
      Construct a KeyValueFilter with the provided values
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.util.Map m)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • KeyValueFilter

        public KeyValueFilter​(java.lang.String mapKey,
                              MapQuery.KeyValueFilter.Cond cond,
                              java.lang.Object value)
        Construct a KeyValueFilter with the provided values
        Parameters:
        mapKey - the map key to look up
        cond - the MapQuery.KeyValueFilter.Cond condition to match on
        value - the value considered an adequate match
    • Method Detail

      • test

        public boolean test​(java.util.Map m)
        Specified by:
        test in interface java.util.function.Predicate<java.util.Map>