Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.esotericsoftware.wildcard.support;

public class ExactFilePathPartMatcher implements FilePathPartMatcher {
    private final String mPart;

    public ExactFilePathPartMatcher( String pPart ) {
        if ( (mPart = pPart.trim()).length() == 0 ) {
            throw new IllegalArgumentException( "Exact Part May NOT be empty!" );
        }
    }

    @Override
    public boolean acceptsAnyNumberOfParts() {
        return false;
    }

    @Override
    public boolean acceptable( String pFilePathPart ) {
        return mPart.equals( pFilePathPart );
    }
}

Commits for litesoft/trunk/Java/ScarPlus/src/com/esotericsoftware/wildcard/support/ExactFilePathPartMatcher.java

Diff revisions: vs.
Revision Author Commited Message
959 Diff Diff GeorgeS picture GeorgeS Sat 19 Jul, 2014 15:27:50 +0000

Scar update

185 Diff Diff GeorgeS picture GeorgeS Sat 30 Apr, 2011 00:16:34 +0000
183 GeorgeS picture GeorgeS Mon 25 Apr, 2011 01:40:10 +0000