Record Class ResolvedImportedType
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ResolvedImportedType
- All Implemented Interfaces:
Comparable<ResolvedImportedType>
public record ResolvedImportedType(String lookupScope, JavaType winner, List<ShadowedTypeDefinition> shadowedDefinitions)
extends Record
implements Comparable<ResolvedImportedType>
Winning imported type within one lookup scope plus all conflicting definitions.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedImportedType(String lookupScope, JavaType winner, List<ShadowedTypeDefinition> shadowedDefinitions) Creates an instance of aResolvedImportedTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ResolvedImportedType other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelookupScoperecord component.Returns the value of theshadowedDefinitionsrecord component.final StringtoString()Returns a string representation of this record class.winner()Returns the value of thewinnerrecord component.
-
Constructor Details
-
ResolvedImportedType
public ResolvedImportedType(String lookupScope, JavaType winner, List<ShadowedTypeDefinition> shadowedDefinitions) Creates an instance of aResolvedImportedTyperecord class.- Parameters:
lookupScope- the value for thelookupScoperecord componentwinner- the value for thewinnerrecord componentshadowedDefinitions- the value for theshadowedDefinitionsrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ResolvedImportedType>
-
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). -
lookupScope
Returns the value of thelookupScoperecord component.- Returns:
- the value of the
lookupScoperecord component
-
winner
Returns the value of thewinnerrecord component.- Returns:
- the value of the
winnerrecord component
-
shadowedDefinitions
Returns the value of theshadowedDefinitionsrecord component.- Returns:
- the value of the
shadowedDefinitionsrecord component
-