V - 待匹配的值的类型 match(value) 中,value的类型P - 匹配的模式的类型 .when(pattern, action) 中,pattern的类型L - lambda表达式参数类型R - 返回值类型MatcherSimpleRMatcher, SimpleVMatcherpublic abstract class SimpleMatcher<V,P,L,R> extends Object implements Matcher
Copyright © 2021. All rights reserved.