类 ConditionOutcome
java.lang.Object
org.springframework.boot.autoconfigure.condition.ConditionOutcome
Outcome for a condition match, including log message.
- 从以下版本开始:
- 1.0.0
- 作者:
- Phillip Webb
- 另请参阅:
-
构造器概要
构造器构造器说明ConditionOutcome
(boolean match, String message) Create a newConditionOutcome
instance.ConditionOutcome
(boolean match, ConditionMessage message) Create a newConditionOutcome
instance. -
方法概要
修饰符和类型方法说明boolean
Return an outcome message ornull
.Return an outcome message ornull
.int
hashCode()
static ConditionOutcome
inverse
(ConditionOutcome outcome) Return the inverse of the specified condition outcome.boolean
isMatch()
Returntrue
if the outcome was a match.static ConditionOutcome
match()
Create a newConditionOutcome
instance for a 'match'.static ConditionOutcome
Create a newConditionOutcome
instance for 'match'.static ConditionOutcome
match
(ConditionMessage message) Create a newConditionOutcome
instance for 'match'.static ConditionOutcome
Create a newConditionOutcome
instance for 'no match'.static ConditionOutcome
noMatch
(ConditionMessage message) Create a newConditionOutcome
instance for 'no match'.toString()
-
构造器详细资料
-
ConditionOutcome
Create a newConditionOutcome
instance. For more consistent messages consider usingConditionOutcome(boolean, ConditionMessage)
.- 参数:
match
- if the condition is a matchmessage
- the condition message
-
ConditionOutcome
Create a newConditionOutcome
instance.- 参数:
match
- if the condition is a matchmessage
- the condition message
-
-
方法详细资料
-
match
Create a newConditionOutcome
instance for a 'match'.- 返回:
- the
ConditionOutcome
-
match
Create a newConditionOutcome
instance for 'match'. For more consistent messages consider usingmatch(ConditionMessage)
.- 参数:
message
- the message- 返回:
- the
ConditionOutcome
-
match
Create a newConditionOutcome
instance for 'match'.- 参数:
message
- the message- 返回:
- the
ConditionOutcome
-
noMatch
Create a newConditionOutcome
instance for 'no match'. For more consistent messages consider usingnoMatch(ConditionMessage)
.- 参数:
message
- the message- 返回:
- the
ConditionOutcome
-
noMatch
Create a newConditionOutcome
instance for 'no match'.- 参数:
message
- the message- 返回:
- the
ConditionOutcome
-
isMatch
public boolean isMatch()Returntrue
if the outcome was a match.- 返回:
true
if the outcome matches
-
getMessage
Return an outcome message ornull
.- 返回:
- the message or
null
-
getConditionMessage
Return an outcome message ornull
.- 返回:
- the message or
null
-
equals
-
hashCode
public int hashCode() -
toString
-
inverse
Return the inverse of the specified condition outcome.- 参数:
outcome
- the outcome to inverse- 返回:
- the inverse of the condition outcome
- 从以下版本开始:
- 1.3.0
-