com.vtence.molecule.lib.IsEqual Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molecule Show documentation
Show all versions of molecule Show documentation
A web micro-framework for Java
package com.vtence.molecule.lib;
public class IsEqual implements Matcher {
private final T other;
public IsEqual(T other) {
this.other = other;
}
public boolean matches(T actual) {
return other.equals(actual);
}
public static IsEqual equalTo(T other) {
return new IsEqual(other);
}
}