public abstract class StringSpecification extends Object implements Specification<String>
Modifier and Type | Class and Description |
---|---|
static interface |
StringSpecification.Options
Options used for comparing strings.
|
Modifier and Type | Field and Description |
---|---|
protected String |
expectedString |
protected StringSpecification.Options |
options |
Modifier | Constructor and Description |
---|---|
protected |
StringSpecification(String expectedString,
StringSpecification.Options options)
Creates a string specification.
|
Modifier and Type | Method and Description |
---|---|
String |
getExpectedString()
Returns the expected string.
|
StringSpecification.Options |
getOptions()
Returns the comparison options.
|
boolean |
isSatisfiedBy(String candidateValue)
Evaluates if the candidate object passed as argument satisfies the specification.
|
protected abstract boolean |
isSatisfiedByString(String candidateString) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, any, asPredicate, negate, none, or
protected final String expectedString
protected final StringSpecification.Options options
protected StringSpecification(String expectedString, StringSpecification.Options options)
expectedString
- the string to compare the candidate against.options
- the comparison options.public boolean isSatisfiedBy(String candidateValue)
Specification
isSatisfiedBy
in interface Specification<String>
candidateValue
- the candidate object to check.protected abstract boolean isSatisfiedByString(String candidateString)
public String getExpectedString()
public StringSpecification.Options getOptions()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.