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

org.yx.common.matcher.BooleanMatcher Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package org.yx.common.matcher;

public class BooleanMatcher implements TextMatcher {

	public static final BooleanMatcher TRUE = new BooleanMatcher(true);
	public static final BooleanMatcher FALSE = new BooleanMatcher(false);

	private boolean matched;

	BooleanMatcher(boolean matched) {
		this.matched = matched;
	}

	@Override
	public boolean match(String text) {
		return matched;
	}

	@Override
	public String toString() {
		return "BooleanMatcher [" + matched + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy