com.venky.parse.character.Include 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;
import java.util.ArrayList;
import java.util.Collection;
public class Include extends AbstractSingleCharacterRule{
Collection include = null;
public Include(char... anyofthese){
this.include = new ArrayList();
for (int i = 0 ; i < anyofthese.length ; i ++){
this.include.add(anyofthese[i]);
}
}
public Include(Collection anyofthese){
this.include = anyofthese;
}
@Override
protected boolean match(char c) {
return include.contains(c);
}
}