Registers data. @param __tag The tag the checkout is called. @param __name The name of the project. @param __uuid The project UUID. @param __n The number of TODOs in the project. @throws NullPointerException On null arguments. @since 2018/03/29
(String __tag, String __name, UUID __uuid, int __n)
| 49 | * @since 2018/03/29 |
| 50 | */ |
| 51 | public void register(String __tag, String __name, UUID __uuid, int __n) |
| 52 | throws NullPointerException |
| 53 | { |
| 54 | if (__tag == null || __name == null || __uuid == null) |
| 55 | throw new NullPointerException("NARG"); |
| 56 | |
| 57 | this.lasttag = __tag; |
| 58 | |
| 59 | Map<UUID, Project> projects = this.projects; |
| 60 | Project p = projects.get(__uuid); |
| 61 | if (p == null) |
| 62 | projects.put(__uuid, (p = new Project(__uuid))); |
| 63 | |
| 64 | // Count for project |
| 65 | p.count(__tag, __name, __n); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Writes the results to the output stream. |