public class CombinedStudentFilter extends Object implements StudentFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
OP_AND
AND
|
static int |
OP_OR
OR
|
| Constructor and Description |
|---|
CombinedStudentFilter(StudentFilter first,
StudentFilter second,
int op)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Student student)
A student is accepted if it is accepted by the first and/or the second
filter
|
String |
getName()
Filter name
|
public static final int OP_AND
public static final int OP_OR
public CombinedStudentFilter(StudentFilter first, StudentFilter second, int op)
public boolean accept(Student student)
accept in interface StudentFilterstudent - a studentpublic String getName()
StudentFiltergetName in interface StudentFilter