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

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

There is a newer version: 1.15
Show newest version
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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy