Record Class ModulePathEntry
java.lang.Object
java.lang.Record
com.netflix.module.compile.ModulePathEntry
- Record Components:
moduleName- the Java module namelocation- the javac module-path locationhash- the module or patch compilation identity
- All Implemented Interfaces:
Comparable<ModulePathEntry>
public record ModulePathEntry(String moduleName, StandardLocation location, ModuleHash hash)
extends Record
implements Comparable<ModulePathEntry>
Compilation identity of a module supplied to a javac module-path location.
Binary modules normally use their content identity; source modules can use a
coarser compile-time API identity.
-
Constructor Summary
ConstructorsConstructorDescriptionModulePathEntry(String moduleName, StandardLocation location, ModuleHash hash) Validates and creates a module-path entry. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ModulePathEntry other) final booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of themoduleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModulePathEntry
Validates and creates a module-path entry.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ModulePathEntry>
-
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). -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
location
-
hash
-