Record Class ModuleCompiler.ModulePath
java.lang.Object
java.lang.Record
com.netflix.module.compile.ModuleCompiler.ModulePath
- Record Components:
modulePath- the complete or reusable base modulepatchModulePath- changed content applied to the base, ornull
- Enclosing class:
ModuleCompiler
-
Constructor Summary
ConstructorsConstructorDescriptionModulePath(Path modulePath, Path patchModulePath) Creates an instance of aModulePathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTests whether the module requires a--patch-modulepath.Returns the value of themodulePathrecord component.Returns the value of thepatchModulePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModulePath
Creates an instance of aModulePathrecord class.- Parameters:
modulePath- the value for themodulePathrecord componentpatchModulePath- the value for thepatchModulePathrecord component
-
-
Method Details
-
hasPatchModule
public boolean hasPatchModule()Tests whether the module requires a--patch-modulepath.- Returns:
trueif a patch path is present
-
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). -
modulePath
Returns the value of themodulePathrecord component.- Returns:
- the value of the
modulePathrecord component
-
patchModulePath
Returns the value of thepatchModulePathrecord component.- Returns:
- the value of the
patchModulePathrecord component
-