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