All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.venky.parse.character.Exclude Maven / Gradle / Ivy

package com.venky.parse.character;

import java.util.ArrayList;
import java.util.Collection;


public class Exclude extends AbstractSingleCharacterRule{

	Collection exclude = null;
	
	public Exclude(char... exclude){
		this.exclude = new ArrayList();
		for (int  i = 0 ; i < exclude.length ; i++){
			this.exclude.add(exclude[i]);
		}
	}
	public Exclude(Collection exclude){
		this.exclude = exclude;
	}
	@Override
	protected boolean match(char c) {
		return !this.exclude.contains(c);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy