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