Record Class ShadowedTypeDefinition
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ShadowedTypeDefinition
- All Implemented Interfaces:
Comparable<ShadowedTypeDefinition>
public record ShadowedTypeDefinition(JavaTypeName typeName, String resourceName, ClassFileOrigin origin, int precedence)
extends Record
implements Comparable<ShadowedTypeDefinition>
One parsed lower-precedence definition retained for conflict evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionShadowedTypeDefinition(JavaTypeName typeName, String resourceName, ClassFileOrigin origin, int precedence) Creates an instance of aShadowedTypeDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ShadowedTypeDefinition other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.intReturns the value of theprecedencerecord component.Returns the value of theresourceNamerecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
ShadowedTypeDefinition
public ShadowedTypeDefinition(JavaTypeName typeName, String resourceName, ClassFileOrigin origin, int precedence) Creates an instance of aShadowedTypeDefinitionrecord class.- Parameters:
typeName- the value for thetypeNamerecord componentresourceName- the value for theresourceNamerecord componentorigin- the value for theoriginrecord componentprecedence- the value for theprecedencerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ShadowedTypeDefinition>
-
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. -
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
resourceName
Returns the value of theresourceNamerecord component.- Returns:
- the value of the
resourceNamerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
precedence
public int precedence()Returns the value of theprecedencerecord component.- Returns:
- the value of the
precedencerecord component
-