Class Source

java.lang.Object
com.tngtech.archunit.core.domain.Source

public class Source
extends java.lang.Object
Contains information about an imported class, i.e. the URI from where the class was imported and an md5 sum to compare different versions of the same class file at the same location.

NOTE: Since the generation of md5 sums has a performance impact, it is disabled by default.
To enable it, add

"enableMd5InClassSources"=true

to your "archunit.properties".

  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Source.Md5sum  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    Optional<java.lang.String> getFileName()  
    Source.Md5sum getMd5sum()  
    java.net.URI getUri()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getUri

      @PublicAPI(usage=ACCESS) public java.net.URI getUri()
    • getFileName

      @PublicAPI(usage=ACCESS) public Optional<java.lang.String> getFileName()
    • getMd5sum

      @PublicAPI(usage=ACCESS) public Source.Md5sum getMd5sum()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object