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