T
- the typed objectpublic interface GenericFilter<T>
T
should be accepted.Modifier and Type | Method and Description |
---|---|
boolean |
accept(T obj)
Determines if the object of type
T should be accepted or not. |
boolean accept(T obj)
T
should be accepted or not.obj
- the object of type T
, remember to handle null
instances.true
if the object is accepted, otherwise false
.