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