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

ch.lambdaj.function.matcher.LambdaJMatcher Maven / Gradle / Ivy

// Modified or written by Ex Machina SAGL for inclusion with lambdaj.
// Copyright (c) 2009 Mario Fusco.
// Licensed under the Apache License, Version 2.0 (the "License")

package ch.lambdaj.function.matcher;

import org.hamcrest.*;


/**
 * A Matcher that extends the Hamcrest BaseMatcher by adding two fluent interface style methods that
 * allow to logically combine two matchers.
 * @author Mario Fusco
 */
public abstract class LambdaJMatcher extends BaseMatcher {

	@SuppressWarnings("unchecked")
	public LambdaJMatcher and(Matcher matcher) {
		return AndMatcher.and(this, matcher);
	}

	@SuppressWarnings("unchecked")
	public LambdaJMatcher or(Matcher matcher) {
		return OrMatcher.or(this, matcher);
	}

    public void describeTo(Description description) { }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy