Record Class AnalysisCacheKey
java.lang.Object
java.lang.Record
dev.archunitjava.importer.AnalysisCacheKey
-
Constructor Summary
ConstructorsConstructorDescriptionAnalysisCacheKey(String digest, int schemaVersion, String parserVersion, String libraryVersion) Creates an instance of aAnalysisCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnalysisCacheKeycreate(List<CacheInputFingerprint> inputs, int targetJavaRelease, String optionFingerprint, String parserVersion, String libraryVersion, int schemaVersion) digest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.static AnalysisCacheKeyfromResources(List<ClassFileResource> resources, ClassPathAssemblyOptions options, String parserVersion, String libraryVersion, int schemaVersion, int maximumResourceBytes) final inthashCode()Returns a hash code value for this object.Returns the value of thelibraryVersionrecord component.Returns the value of theparserVersionrecord component.intReturns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnalysisCacheKey
public AnalysisCacheKey(String digest, int schemaVersion, String parserVersion, String libraryVersion) Creates an instance of aAnalysisCacheKeyrecord class.- Parameters:
digest- the value for thedigestrecord componentschemaVersion- the value for theschemaVersionrecord componentparserVersion- the value for theparserVersionrecord componentlibraryVersion- the value for thelibraryVersionrecord component
-
-
Method Details
-
create
public static AnalysisCacheKey create(List<CacheInputFingerprint> inputs, int targetJavaRelease, String optionFingerprint, String parserVersion, String libraryVersion, int schemaVersion) -
fromResources
public static AnalysisCacheKey fromResources(List<ClassFileResource> resources, ClassPathAssemblyOptions options, String parserVersion, String libraryVersion, int schemaVersion, int maximumResourceBytes) throws IOException - Throws:
IOException
-
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. -
digest
Returns the value of thedigestrecord component.- Returns:
- the value of the
digestrecord component
-
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
parserVersion
Returns the value of theparserVersionrecord component.- Returns:
- the value of the
parserVersionrecord component
-
libraryVersion
Returns the value of thelibraryVersionrecord component.- Returns:
- the value of the
libraryVersionrecord component
-