Record Class SelectedClassResource
java.lang.Object
java.lang.Record
dev.archunitjava.importer.SelectedClassResource
- All Implemented Interfaces:
Comparable<SelectedClassResource>
public record SelectedClassResource(String lookupScope, String logicalName, ClassFileResource winner, int selectedRelease, List<ClassFileResource> shadowedAlternatives)
extends Record
implements Comparable<SelectedClassResource>
One selected logical class resource plus every lower-precedence alternative.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectedClassResource(String lookupScope, String logicalName, ClassFileResource winner, int selectedRelease, List<ClassFileResource> shadowedAlternatives) Creates an instance of aSelectedClassResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SelectedClassResource 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 thelogicalNamerecord component.Returns the value of thelookupScoperecord component.intReturns the value of theselectedReleaserecord component.Returns the value of theshadowedAlternativesrecord component.final StringtoString()Returns a string representation of this record class.winner()Returns the value of thewinnerrecord component.
-
Constructor Details
-
SelectedClassResource
public SelectedClassResource(String lookupScope, String logicalName, ClassFileResource winner, int selectedRelease, List<ClassFileResource> shadowedAlternatives) Creates an instance of aSelectedClassResourcerecord class.- Parameters:
lookupScope- the value for thelookupScoperecord componentlogicalName- the value for thelogicalNamerecord componentwinner- the value for thewinnerrecord componentselectedRelease- the value for theselectedReleaserecord componentshadowedAlternatives- the value for theshadowedAlternativesrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<SelectedClassResource>
-
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. -
lookupScope
Returns the value of thelookupScoperecord component.- Returns:
- the value of the
lookupScoperecord component
-
logicalName
Returns the value of thelogicalNamerecord component.- Returns:
- the value of the
logicalNamerecord component
-
winner
Returns the value of thewinnerrecord component.- Returns:
- the value of the
winnerrecord component
-
selectedRelease
public int selectedRelease()Returns the value of theselectedReleaserecord component.- Returns:
- the value of the
selectedReleaserecord component
-
shadowedAlternatives
Returns the value of theshadowedAlternativesrecord component.- Returns:
- the value of the
shadowedAlternativesrecord component
-