litesoft
@ 938
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt package org.litesoft.core.util.stringmatching; public class EndsWithStringMatcher extends AbstractSingleStringMatcher { // Package Friendly EndsWithStringMatcher( int pMinLength, boolean pIgnoreCase, String pToMatch ) { super( pMinLength, pIgnoreCase, pToMatch ); } @Override protected boolean LLmatches( String pInQuestion ) { return pInQuestion.endsWith( mToMatch ); } @Override public String toString() { return "EndsWith( '" + mToMatch + "' )"; } } |