T
- the target data model typepublic abstract class DataFilter<T> extends Object
initialize(Context)
and obtain them from the context object.Modifier and Type | Class and Description |
---|---|
static class |
DataFilter.Context
Context object for
DataFilter . |
Constructor and Description |
---|
DataFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsData(T data)
Returns whether this filter accepts the target data or not.
|
boolean |
acceptsPath(String path)
Returns whether this filter accepts the target file or not.
|
void |
initialize(DataFilter.Context context)
Initializes this object.
|
public void initialize(DataFilter.Context context)
context
- the current contextpublic boolean acceptsPath(String path)
path
- the target file pathtrue
to accepts the target file, otherwise false
public boolean acceptsData(T data)
data
- the target datatrue
to accepts the target data, otherwise false
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.