public class ConditionOutcome extends Object
Constructor and Description |
---|
ConditionOutcome(boolean match,
String message) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getMessage()
Return an outcome message or
null . |
int |
hashCode() |
static ConditionOutcome |
inverse(ConditionOutcome outcome)
Return the inverse of the specified condition outcome.
|
boolean |
isMatch()
Return
true if the outcome was a match. |
static ConditionOutcome |
match()
Create a new
ConditionOutcome instance for a 'match'. |
static ConditionOutcome |
match(String message)
Create a new
ConditionOutcome instance for 'match'. |
static ConditionOutcome |
noMatch(String message)
Create a new
ConditionOutcome instance for 'no match'. |
String |
toString() |
public ConditionOutcome(boolean match, String message)
public static ConditionOutcome match()
ConditionOutcome
instance for a 'match'.ConditionOutcome
public static ConditionOutcome match(String message)
ConditionOutcome
instance for 'match'.message
- the messageConditionOutcome
public static ConditionOutcome noMatch(String message)
ConditionOutcome
instance for 'no match'.message
- the messageConditionOutcome
public boolean isMatch()
true
if the outcome was a match.true
if the outcome matchespublic String getMessage()
null
.null
public static ConditionOutcome inverse(ConditionOutcome outcome)
outcome
- the outcome to inverseCopyright © 2016 Pivotal Software, Inc.. All rights reserved.