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() |
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'. |
public ConditionOutcome(boolean match, String message)
public static ConditionOutcome match()
ConditionOutcome
instance for a 'match'.public static ConditionOutcome match(String message)
ConditionOutcome
instance for 'match'.message
- the messagepublic static ConditionOutcome noMatch(String message)
ConditionOutcome
instance for 'no match'.message
- the messagepublic boolean isMatch()
true
if the outcome was a match.public String getMessage()
null
.Copyright © 2014. All rights reserved.