Matcher, PatternMatcherpublic class BooleanRMatcher<V,R> extends Object implements PatternMatcher
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected boolean |
isMatch |
|
protected R |
returnValue |
|
protected V |
value |
| 构造器 | 说明 |
|---|---|
BooleanRMatcher(V value) |
|
BooleanRMatcher(V value,
boolean isMatch) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
R |
orElse(R1<? super V,? extends R> action) |
|
<E extends Throwable> |
orWith(RT1<? super V,? extends R,E> action) |
|
BooleanRMatcher<V,R> |
when(boolean value,
R1<? super V,? extends R> action) |
|
BooleanRMatcher<V,R> |
whenNext(boolean value,
R1<? super V,? extends R> action) |
|
<E extends Throwable> |
with(boolean value,
RT1<? super V,? extends R,E> action) |
|
<E extends Throwable> |
withNext(boolean value,
RT1<? super V,? extends R,E> action) |
protected R returnValue
protected V value
protected boolean isMatch
public BooleanRMatcher(V value, boolean isMatch)
public BooleanRMatcher(V value)
public <E extends Throwable> BooleanRMatcher<V,R> with(boolean value, RT1<? super V,? extends R,E> action) throws E extends Throwable
E extends Throwablepublic <E extends Throwable> BooleanRMatcher<V,R> withNext(boolean value, RT1<? super V,? extends R,E> action) throws E extends Throwable
E extends ThrowableCopyright © 2023 io-fairy. All rights reserved.