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

org.joo.libra.collection.InPredicate Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.joo.libra.collection;

import java.util.Collection;

import org.joo.libra.common.BinaryPredicate;
import org.joo.libra.common.HasValue;

public class InPredicate extends BinaryPredicate> {

	public InPredicate(HasValue one, HasValue> other) {
		super(one, other);
	}

	@Override
	protected boolean doSatisifiedBy(Object one, Collection other) {
		return other.contains(one);
	}
}