Debian Codegraph @

jna-rinchi-core/src/main/java/io/github/dan2097/jnarinchi/RinchiInputFromRinchiOutput.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 a conversion from RInChI (and RAuxInfo) to {@link RinchiInput}.
22 * @author Nikolay Kochev
23 */
24 public class RinchiInputFromRinchiOutput extends Output {
25 private final RinchiInput rinchiInput;
26
27 public RinchiInputFromRinchiOutput(RinchiInput rinchiInput, Status status,
28 int errorCode, String errorMessage) {
29 super(status, errorCode, errorMessage);
30 this.rinchiInput = rinchiInput;
31 }
32
33 public RinchiInput getRinchiInput() {
34 return rinchiInput;
35 }
36 }