MatcherMappingpublic class TypeMatcherMapping<V> extends PatternMatcherMapping<V>
value| 构造器 | 说明 |
|---|---|
TypeMatcherMapping(V value) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
<C,R> TypeRMatcher<V,R> |
when(Class<C> matchValue,
R1<? super C,? extends R> action) |
|
<C> TypeVMatcher<V> |
when(Class<C> matchValue,
V1<? super C> action) |
|
<C,R> TypeRMatcher<V,R> |
whenNext(Class<C> matchValue,
R1<? super C,? extends R> action) |
|
<C> TypeVMatcher<V> |
whenNext(Class<C> matchValue,
V1<? super C> action) |
|
<C,R,E extends Throwable> |
with(Class<C> matchValue,
RT1<? super C,? extends R,E> action) |
|
<C,E extends Throwable> |
with(Class<C> matchValue,
VT1<? super C,E> action) |
|
<C,R,E extends Throwable> |
withNext(Class<C> matchValue,
RT1<? super C,? extends R,E> action) |
|
<C,E extends Throwable> |
withNext(Class<C> matchValue,
VT1<? super C,E> action) |
public TypeMatcherMapping(V value)
public <C> TypeVMatcher<V> when(Class<C> matchValue, V1<? super C> action)
public <C> TypeVMatcher<V> whenNext(Class<C> matchValue, V1<? super C> action)
public <C,R> TypeRMatcher<V,R> when(Class<C> matchValue, R1<? super C,? extends R> action)
public <C,R> TypeRMatcher<V,R> whenNext(Class<C> matchValue, R1<? super C,? extends R> action)
public <C,E extends Throwable> TypeVMatcher<V> with(Class<C> matchValue, VT1<? super C,E> action) throws E extends Throwable
E extends Throwablepublic <C,E extends Throwable> TypeVMatcher<V> withNext(Class<C> matchValue, VT1<? super C,E> action) throws E extends Throwable
E extends Throwablepublic <C,R,E extends Throwable> TypeRMatcher<V,R> with(Class<C> matchValue, RT1<? super C,? extends R,E> action) throws E extends Throwable
E extends ThrowableCopyright © 2023 io-fairy. All rights reserved.