Revision 104,
401 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package test.rewolucja.resources.utils.validator; |
---|
2 | |
---|
3 | import test.rewolucja.resources.physical.base.ComputingResource; |
---|
4 | |
---|
5 | public class ResourceNameValidator implements ResourceValidator { |
---|
6 | |
---|
7 | private String name; |
---|
8 | public ResourceNameValidator(String name) { |
---|
9 | super(); |
---|
10 | this.name = name; |
---|
11 | } |
---|
12 | |
---|
13 | @Override |
---|
14 | public boolean validate(ComputingResource resource) { |
---|
15 | return resource.getName().equals(name); |
---|
16 | } |
---|
17 | |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.