MCPcopy Create free account
hub / github.com/SquirrelJME/SquirrelJME / register

Method register

utils-dev/TodoProgression.java:51–66  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

mainMethod · 0.95

Calls 3

countMethod · 0.95
getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected