April 2018
Intermediate to advanced
910 pages
33h 21m
English
The ParamsAndHandle is a very simple class that holds two fields. One for the parameters and the other is the handle to the process handle that is used to access the process started using the parameters:
public class ParamsAndHandle
{ final Parameters params; ProcessHandle handle; public ParamsAndHandle(Parameters params, ProcessHandle handle) { this.params = params; this.handle = handle; } public ProcessHandle toHandle() { return handle; } }
Since the class is closely tied to the ControlDaemon class from where it is used there is no mutator or accessor associated with the field. We see the two classes as something inside the same encapsulation boundaries. The toHandle method is there so that we can use it as a ...