Debian Codegraph @

jna-rinchi-core/src/main/java/io/github/dan2097/jnarinchi/RinchiOutput.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 /**
22 * Immutable data class for the result of RInChI and RAuxInfo generation.
23 *
24 * @author Nikolay Kochev
25 */
26 public class RinchiOutput extends Output {
27
28 private final String rinchi;
29 private final String auxInfo;
30
31 public RinchiOutput(String rinchi, String auxInfo, Status status, int errorCode, String errorMessage) {
32 super(status, errorCode, errorMessage);
33 this.rinchi = rinchi;
34 this.auxInfo = auxInfo;
35 }
36
37 public String getRinchi() {
38 return rinchi;
39 }
40
41 public String getAuxInfo() {
42 return auxInfo;
43 }
44
45 @Override
46 public String toString() {
47 return rinchi;
48 }
49
50 }