Debian Codegraph @

jna-rinchi-core/src/main/java/io/github/dan2097/jnarinchi/RinchiKeyOutput.java

raw
1 /**
2 * JNA-RInChI - Library for calling RInChI from Java
3 * Copyright © 2022 Nikolay Kochev
4 * <p>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 * <p>
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 * <p>
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 package io.github.dan2097.jnarinchi;
19
20 /**
21 * Immutable data class for the result of RInChIKey generation.
22 *
23 * @author Nikolay Kochev
24 */
25 public class RinchiKeyOutput extends Output {
26 private final String rinchiKey;
27 private final RinchiKeyType rinchiKeyType;
28
29 public RinchiKeyOutput(String rinchiKey, RinchiKeyType rinchiKeyType,
30 Status status, int errorCode, String errorMessage) {
31 super(status, errorCode, errorMessage);
32 this.rinchiKey = rinchiKey;
33 this.rinchiKeyType = rinchiKeyType;
34 }
35
36 public String getRinchiKey() {
37 return rinchiKey;
38 }
39
40 public RinchiKeyType getRinchiKeyType() {
41 return rinchiKeyType;
42 }
43 }