Interface WildcardPattern.Shape
- All Known Implementing Classes:
WildcardPattern.Shape.Contains,WildcardPattern.Shape.General,WildcardPattern.Shape.Prefix,WildcardPattern.Shape.Suffix
- Enclosing class:
WildcardPattern
public static sealed interface WildcardPattern.Shape
permits WildcardPattern.Shape.Prefix, WildcardPattern.Shape.Suffix, WildcardPattern.Shape.Contains, WildcardPattern.Shape.General
Classification of a
WildcardPattern into the simple fast-path
shapes. The three concrete records carry the unescaped literal
segment; WildcardPattern.Shape.General is the fall-through case for everything else.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record*literal*— pattern matches values that containliteral.static enumAnything that does not matchWildcardPattern.Shape.Prefix,WildcardPattern.Shape.Suffix, orWildcardPattern.Shape.Contains.static final recordliteral*— pattern matches values that start withliteral.static final record*literal— pattern matches values that end withliteral.