public class Same<T> extends BaseConstraint<T>
Object.equals(Object) sense).| Constructor and Description |
|---|
Same(Object o)
Creates an instance from a value.
|
public Same(Object o)
o - the value.public boolean accepts(Object t)
true if a value satisfies the constraint.t - the value.true if the value satisfies the constraint, false if it does not.public String toString()
toString in class BaseConstraint<T>public Object as()
Copyright © 2017. All Rights Reserved.