-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from half-nothing/v3.x
System tray icon function enhanced
- Loading branch information
Showing
21 changed files
with
1,003 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
core/src/cn/harryh/arkpets/process_pool/ProcessHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package cn.harryh.arkpets.process_pool; | ||
|
||
public class ProcessHolder { | ||
private final Long processID; | ||
private final Process process; | ||
|
||
public Long getProcessID() { | ||
return processID; | ||
} | ||
|
||
public Process getProcess() { | ||
return process; | ||
} | ||
|
||
public static ProcessHolder holder(Process process) { | ||
return new ProcessHolder(process); | ||
} | ||
|
||
private ProcessHolder(Process process) { | ||
this.process = process; | ||
this.processID = process.pid(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ProcessHolder [processID=" + processID + "]"; | ||
} | ||
} |
Oops, something went wrong.