Subversion Repository Public Repository

litesoft

Diff Revisions 958 vs 959 for /trunk/Java/ScarPlus/src/com/esotericsoftware/wildcard/support/ExactFilePathPartMatcher.java

Diff revisions: vs.
  @@ -1,26 +1,21 @@
1 1 package com.esotericsoftware.wildcard.support;
2 2
3 - public class ExactFilePathPartMatcher implements FilePathPartMatcher
4 - {
3 + public class ExactFilePathPartMatcher implements FilePathPartMatcher {
5 4 private final String mPart;
6 5
7 - public ExactFilePathPartMatcher( String pPart )
8 - {
9 - if ( (mPart = pPart.trim()).length() == 0 )
10 - {
6 + public ExactFilePathPartMatcher( String pPart ) {
7 + if ( (mPart = pPart.trim()).length() == 0 ) {
11 8 throw new IllegalArgumentException( "Exact Part May NOT be empty!" );
12 9 }
13 10 }
14 11
15 12 @Override
16 - public boolean acceptsAnyNumberOfParts()
17 - {
13 + public boolean acceptsAnyNumberOfParts() {
18 14 return false;
19 15 }
20 16
21 17 @Override
22 - public boolean acceptable( String pFilePathPart )
23 - {
18 + public boolean acceptable( String pFilePathPart ) {
24 19 return mPart.equals( pFilePathPart );
25 20 }
26 21 }