com.jayway.jsonpath
Class Filter.FilterAdapter<T>

java.lang.Object
  extended by com.jayway.jsonpath.Filter<T>
      extended by com.jayway.jsonpath.Filter.FilterAdapter<T>
Enclosing class:
Filter<T>

public abstract static class Filter.FilterAdapter<T>
extends Filter<T>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jayway.jsonpath.Filter
Filter.FilterAdapter<T>
 
Constructor Summary
Filter.FilterAdapter()
           
 
Method Summary
 boolean accept(T obj)
          Check if this filter will accept or reject the given object
 Filter addCriteria(Criteria criteria)
          Adds a new criteria to this filter
 
Methods inherited from class com.jayway.jsonpath.Filter
doFilter, filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter.FilterAdapter

public Filter.FilterAdapter()
Method Detail

accept

public boolean accept(T obj)
Description copied from class: Filter
Check if this filter will accept or reject the given object

Specified by:
accept in class Filter<T>
Parameters:
obj - item to check
Returns:
true if filter matches

addCriteria

public Filter addCriteria(Criteria criteria)
Description copied from class: Filter
Adds a new criteria to this filter

Specified by:
addCriteria in class Filter<T>
Parameters:
criteria - to add
Returns:
the updated filter


Copyright © 2011-2012. All Rights Reserved.