Class ContentHashOf
java.lang.Object
org.ek9lang.core.ContentHashOf
- All Implemented Interfaces:
BiFunction<ClassLoader, List<String>, String>
THE content hash of the classes under some packages as a class loader would serve them: where a class is on
several roots, the first root (the one the loader resolves) counts. Names plus, for a jar, the CRC-32 and size its
central directory already records (no class is loaded or inflated), and for an exploded class directory the bytes
themselves; then the packaged licence texts, so a changed licence or notices text is a changed runtime. The
runtime's own hash, once per process, is
RuntimeContentHash.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ClassLoader classLoader, List<String> packages) The content hash of the classes underpackagesasclassLoaderwould serve them.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
ContentHashOf
ContentHashOf()
-
-
Method Details
-
apply
The content hash of the classes underpackagesasclassLoaderwould serve them.- Specified by:
applyin interfaceBiFunction<ClassLoader, List<String>, String>- Returns:
- 16 lower-case hex characters
-