diff options
| author | Busfreak | 2023-03-10 10:54:59 +0100 |
|---|---|---|
| committer | GitHub | 2023-03-10 10:54:59 +0100 |
| commit | 68e2312651779220ec68f5bbb2eb9339505ebb3d (patch) | |
| tree | aee5e630082ae7a1f81fccdc0ebdaeefc950689c /DNPMPlugins/src/main/java/ATCCodes/AtcCode.java | |
| parent | 9d66c42460dda63a6380ba0f30004fcd92a4f5c4 (diff) | |
| parent | 4b121482f1a8323ea23858e8118934be5d9aa54c (diff) | |
Merge pull request #6 from CCC-MF/issue_5
Issue #5: Vorschlag für den Aufbau des Projekts
Diffstat (limited to 'DNPMPlugins/src/main/java/ATCCodes/AtcCode.java')
| -rw-r--r-- | DNPMPlugins/src/main/java/ATCCodes/AtcCode.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/DNPMPlugins/src/main/java/ATCCodes/AtcCode.java b/DNPMPlugins/src/main/java/ATCCodes/AtcCode.java deleted file mode 100644 index e8bf9f1..0000000 --- a/DNPMPlugins/src/main/java/ATCCodes/AtcCode.java +++ /dev/null @@ -1,51 +0,0 @@ -package ATCCodes; - -import java.util.Objects; - -/** - * ATC-Code as used in WHO XML file - * - * @author Paul-Christian Volkmer - * @since 0.1.0 - */ -public class AtcCode implements AgentCode { - - private final String code; - private final String name; - - public AtcCode(String code, String name) { - this.code = code; - this.name = name; - } - - public String getCode() { - return code; - } - - public String getName() { - return name; - } - - public CodeSystem getSystem() { - return CodeSystem.ATC; - } - - @Override - public int compareTo(final AgentCode agentCode) { - return this.name.toLowerCase().compareTo(agentCode.getName().toLowerCase()); - } - - @Override - public boolean equals(final Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - AgentCode otherAgentCode = (AgentCode) o; - return Objects.equals(code.toLowerCase(), otherAgentCode.getCode().toLowerCase()) - && Objects.equals(name.toLowerCase(), otherAgentCode.getName().toLowerCase()); - } - - @Override - public int hashCode() { - return Objects.hash(code.toLowerCase(), name.toLowerCase()); - } -}
\ No newline at end of file |
