/** * Gets the parent process for the given process. The parent will be searched for within the {@link #getProcesses()} * list. * * @param child * * @return the child's parent process or <code>null</code> if the child has no parent */ private ProcessInfo getParentProcess(ProcessInfo child) { ProcessInfo parent = null; if (child != null) { parent = this.allProcesses.get(child.getParentPid()); } return parent; }
/** * Gets the parent process for the given process. The parent will be searched for within the {@link #getProcesses()} * list. * * @param child * * @return the child's parent process or <code>null</code> if the child has no parent */ private ProcessInfo getParentProcess(ProcessInfo child) { ProcessInfo parent = null; if (child != null) { parent = this.allProcesses.get(child.getParentPid()); } return parent; }