public class SimpleIndexInclusionFilter extends Object implements DataProviderFilter
Modifier and Type | Field and Description |
---|---|
protected static SimpleLogger |
logger |
Constructor and Description |
---|
SimpleIndexInclusionFilter(int[] indexes)
Initializes indexes to be included for filter using an array of indexes.
|
SimpleIndexInclusionFilter(String filterIndexes)
Initializes indexes to be included for filter using a conforming string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Object data)
This function identifies whether the object falls in the filtering criteria or not based on the indexes provided.
|
String |
toString()
Returns a string representation of the indexes.
|
protected static final SimpleLogger logger
public SimpleIndexInclusionFilter(String filterIndexes)
filterIndexes
- - sets the indexes string that will be used in the filtering. It is in the format of:
public SimpleIndexInclusionFilter(int[] indexes)
indexes
- - sets the indexes that will be used in the filtering. It is an array of integers starting from 1.public boolean filter(Object data)
filter
in interface DataProviderFilter
data
- the object to be filtered.Copyright © 2016 PayPal Open Source. All rights reserved.