|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassFilter
A filter to be given as parameter to methods that apply filtering on Class instances.
An example of such method is LineFormat.getElementType(ClassFilter).
| utility/geotk-utility (download) | View source code for this class |
| Field Summary | |
|---|---|
static ClassFilter |
CHAR_SEQUENCE
Returns a filter accepting only classes assignable to CharSequence. |
static ClassFilter |
NUMBER
Returns a filter accepting only classes assignable to Number. |
| Method Summary | |
|---|---|
boolean |
accepts(Class<?> type)
Returns true if the given class can be accepted. |
ClassFilter |
negate()
Returns a filter which is the negation of this filter. |
| Field Detail |
|---|
static final ClassFilter NUMBER
Number.
static final ClassFilter CHAR_SEQUENCE
CharSequence.
| Method Detail |
|---|
boolean accepts(Class<?> type)
true if the given class can be accepted.
type - The class to test.
true if the given class can be accepted.ClassFilter negate()
negate().accepts(t) == !accepts(t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||