public abstract class SpecificationClause
extends java.lang.Object
Every specification clause has at least a guard (which this class provides). Some clauses have more parts, so subclasses of this class can add fields.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
The description of this
SpecificationClause . |
private Guard |
guard
The
Guard for this specification. |
Modifier | Constructor and Description |
---|---|
protected |
SpecificationClause()
Gson serialization requires a no-argument constructor.
|
protected |
SpecificationClause(java.lang.String description,
Guard guard)
Creates a
SpecificationClause with the given guard. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object object) |
java.lang.String |
getDescription()
Returns the description of this
SpecificationClause . |
Guard |
getGuard()
Return the
Guard of this SpecificationClause . |
int |
hashCode() |
private final java.lang.String description
SpecificationClause
.protected SpecificationClause()
protected SpecificationClause(java.lang.String description, Guard guard)
SpecificationClause
with the given guard.description
- the description of the created specificationguard
- the Guard
for the created specificationpublic java.lang.String getDescription()
SpecificationClause
.public Guard getGuard()
Guard
of this SpecificationClause
.public boolean equals(@Nullable java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object