Record Class ImportResourceRule
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ImportResourceRule
public record ImportResourceRule(ImportRuleAction action, JavaPattern pattern, String source, int line)
extends Record
One immutable, reviewable include/exclude rule for a root-relative resource path.
-
Constructor Summary
ConstructorsConstructorDescriptionImportResourceRule(ImportRuleAction action, JavaPattern pattern, String source, int line) Creates an instance of aImportResourceRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.static ImportResourceRulefinal inthashCode()Returns a hash code value for this object.static ImportResourceRuleintline()Returns the value of thelinerecord component.booleanpattern()Returns the value of thepatternrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportResourceRule
Creates an instance of aImportResourceRulerecord class.- Parameters:
action- the value for theactionrecord componentpattern- the value for thepatternrecord componentsource- the value for thesourcerecord componentline- the value for thelinerecord component
-
-
Method Details
-
include
-
exclude
-
matches
-
description
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-