| Modifier and Type | Field and Description |
|---|---|
private boolean |
excludeSuperType |
private Class<?> |
superClass
The class
|
| Constructor and Description |
|---|
AssignableFromFilter(Class<?> superClass)
The constructor.
|
AssignableFromFilter(Class<?> superClass,
boolean excludeSuperClass)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> type)
This method determines if the given
value should be accepted. |
private final Class<?> superClass
private final boolean excludeSuperType
accept(Class)public AssignableFromFilter(Class<?> superClass)
superClass - is the super-type defining which types to accept.public boolean accept(Class<?> type)
value should be accepted.accept in interface Filter<Class<?>>type - is the value to check.true if and only if the given type is
assignable from the super-type defined at
construction. This means the given type has to
implement/extend the super-type or be equal to it.Copyright © 2001–2015 mmm-Team. All rights reserved.