com.venky.parse.character.CharRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Commonly used programming tasks in java
package com.venky.parse.character;
public class CharRange extends AbstractSingleCharacterRule{
private char low ;
private char hi;
public CharRange(char low,char hi){
super();
this.low = low;
this.hi = hi;
}
@Override
protected boolean match(char c) {
if (low <= c && c <= hi){
return true;
}
return false;
}
}