Specification
Leave feedback
On this page
Inheritance: java.lang.Object
public abstract class Specification
Provides a base abstract class for search specifications that can be combined using logical operators.
| Constructor | Description |
|---|---|
| Specification() |
| Method | Description |
|---|---|
| isSatisfiedBy(MetadataProperty candidate) | Verifies whether a MetadataProperty satisfies the specification. |
| and(Specification other) | Combines two search specifications using the logical AND operator. |
| or(Specification other) | Combines two search specifications using the logical OR operator. |
| not() | Negates the specification. |
public Specification()
public abstract boolean isSatisfiedBy(MetadataProperty candidate)
Verifies whether a MetadataProperty satisfies the specification.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| candidate | MetadataProperty | A metadata property to test. |
Returns: boolean - True, if the passed property satisfies the specification; otherwise, false.
public final Specification and(Specification other)
Combines two search specifications using the logical AND operator.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | Specification | A specification to combine with. |
Returns: Specification - A composite specification.
public final Specification or(Specification other)
Combines two search specifications using the logical OR operator.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | Specification | A specification to combine with. |
Returns: Specification - A composite specification.
public final Specification not()
Negates the specification.
Returns: Specification - A composite specification.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.