Record Class CliPattern
java.lang.Object
java.lang.Record
dev.archunitjava.cli.CliPattern
Bounded exact or glob pattern; arbitrary regular expressions are intentionally unsupported.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCliPattern(CliPattern.Kind kind, String expression) Creates an instance of aCliPatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.static CliPatterntoString()Returns a string representation of this record class.
-
Constructor Details
-
CliPattern
Creates an instance of aCliPatternrecord class.- Parameters:
kind- the value for thekindrecord componentexpression- the value for theexpressionrecord component
-
-
Method Details
-
parse
-
toJavaPattern
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-