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