public class AssertionWarning extends Object implements Serializable
Assertion.getWarnings()
Assertion
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
AssertionWarning.Type
Denotes the type of a warning.
|
Constructor and Description |
---|
AssertionWarning(AssertionWarning.Type type,
Interval i1,
Interval i2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Interval |
getI1()
Returns the first interval involved in this warning.
|
Interval |
getI2()
Returns the second interval involved in this warning.
|
AssertionWarning.Type |
getType()
Returns the type of this warning.
|
String |
toString()
Returns a message in english describing the conflict represented
by this warning.
|
public AssertionWarning(AssertionWarning.Type type, Interval i1, Interval i2)
type
- Either INTERSECTING meaning that i1 and i2 intersects,
ENCLOSING meaning that i2 is completely enclosed by i1 or
EXCLUDING meaning that i2 is completely excluded by i1.i1
- One of the intervals of the conflict.i2
- The other interval of the conflict.public String toString()
public AssertionWarning.Type getType()
public Interval getI1()