com.jayway.jsonpath
Class Filter.FilterAdapter<T>
java.lang.Object
com.jayway.jsonpath.Filter<T>
com.jayway.jsonpath.Filter.FilterAdapter<T>
- Enclosing class:
- Filter<T>
public abstract static class Filter.FilterAdapter<T>
- extends Filter<T>
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Filter.FilterAdapter
public Filter.FilterAdapter()
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.