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