Uses of Interface
cloud.opencode.base.functional.pattern.Pattern
Packages that use Pattern
Package
Description
OpenCode Functional - Functional Programming Utilities for JDK 25+
OpenCode 函数式编程工具库
Pattern Matching - Enhanced pattern matching utilities
模式匹配 - 增强的模式匹配工具
-
Uses of Pattern in cloud.opencode.base.functional
Methods in cloud.opencode.base.functional that return PatternModifier and TypeMethodDescriptionstatic <T,R> Pattern <T, R> OpenFunctional.typePattern(Class<R> type) Create a type pattern 创建类型模式 -
Uses of Pattern in cloud.opencode.base.functional.pattern
Methods in cloud.opencode.base.functional.pattern that return PatternModifier and TypeMethodDescriptionCombine with another pattern (AND) 与另一个模式组合(AND)static <T> Pattern<T, T> Pattern.any()Create a pattern that always matches 创建始终匹配的模式static <T> Pattern<T, T> Pattern.equalTo(T expected) Create an equality matching pattern 创建相等匹配模式Add a guard condition 添加守卫条件static <T> Pattern<T, T> Pattern.isNull()Create a null matching pattern 创建 null 匹配模式Transform the matched result 转换匹配的结果Combine with another pattern (OR) 与另一个模式组合(OR)Case.pattern()Get the pattern 获取模式static <T,R> Pattern <T, R> Create a type matching pattern 创建类型匹配模式static <T> Pattern<T, T> Create a predicate matching pattern 创建谓词匹配模式Methods in cloud.opencode.base.functional.pattern with parameters of type PatternModifier and TypeMethodDescriptionCombine with another pattern (AND) 与另一个模式组合(AND)<U,R> OpenMatch.Matcher <T> Match using a Pattern with action 使用 Pattern 进行匹配并执行动作static <T,U, R> Case <T, R> Create a case from a custom pattern 从自定义模式创建分支Combine with another pattern (OR) 与另一个模式组合(OR)