T - the type of the candidate object the specification applies to.public class EqualSpecification<T> extends Object implements Specification<T>
Objects.equals(Object, Object).| Constructor and Description |
|---|
EqualSpecification(T expectedValue)
Creates an specification of equality.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getExpectedValue()
Returns the expected value.
|
boolean |
isSatisfiedBy(T candidate)
Evaluates if the candidate object passed as argument satisfies the specification.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, any, asPredicate, negate, none, orpublic EqualSpecification(T expectedValue)
expectedValue - the value used to do the equality check against.public boolean isSatisfiedBy(T candidate)
SpecificationisSatisfiedBy in interface Specification<T>candidate - the candidate object to check.public T getExpectedValue()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.