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