litesoft
Diff Revisions
958
vs
959
for /trunk/Java/ScarPlus/src/com/esotericsoftware/wildcard/support/ExactDirMatcher.java
|
@@ -2,24 +2,20 @@ |
2 |
2 |
|
|
3 |
3 |
|
import com.esotericsoftware.wildcard.*; |
4 |
4 |
|
|
5 |
|
- |
public class ExactDirMatcher implements DirMatcher |
6 |
|
- |
{ |
|
5 |
+ |
public class ExactDirMatcher implements DirMatcher { |
7 |
6 |
|
private String mDirPath; |
8 |
7 |
|
|
9 |
|
- |
public ExactDirMatcher( String pDirPath ) |
10 |
|
- |
{ |
|
8 |
+ |
public ExactDirMatcher( String pDirPath ) { |
11 |
9 |
|
mDirPath = pDirPath; |
12 |
10 |
|
} |
13 |
11 |
|
|
14 |
12 |
|
@Override |
15 |
|
- |
public boolean acceptableParentDir( String dirPath ) |
16 |
|
- |
{ |
|
13 |
+ |
public boolean acceptableParentDir( String dirPath ) { |
17 |
14 |
|
return mDirPath.startsWith( dirPath + "/" ); |
18 |
15 |
|
} |
19 |
16 |
|
|
20 |
17 |
|
@Override |
21 |
|
- |
public boolean acceptable( String dirPath ) |
22 |
|
- |
{ |
|
18 |
+ |
public boolean acceptable( String dirPath ) { |
23 |
19 |
|
return mDirPath.equals( dirPath ); |
24 |
20 |
|
} |
25 |
21 |
|
} |