1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.emergencyinfo.util;
16
17 import org.apache.commons.collections.Predicate;
18 import org.kuali.mobility.emergencyinfo.entity.EmergencyInfo;
19
20
21
22
23
24 public class CampusPredicate implements Predicate {
25
26 private String campus;
27
28 public CampusPredicate( String campus ) {
29 super();
30 this.campus = campus;
31 }
32
33 @Override
34 public boolean evaluate( Object obj ) {
35 boolean match = false;
36
37 if( null != campus && obj instanceof EmergencyInfo
38 && campus.equalsIgnoreCase( ((EmergencyInfo)obj).getCampus())) {
39 match = true;
40 }
41
42 return match;
43 }
44 }