Debian Codegraph @

jna-inchi-api/src/main/java/io/github/dan2097/jnainchi/InchiKeyOutput.java

raw
1 /**
2 * JNA-InChI - Library for calling InChI from Java
3 * Copyright © 2018 Daniel Lowe
4 *
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 *
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 *
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.jnainchi;
19
20 public class InchiKeyOutput {
21
22 private final String inchiKey;
23 private final InchiKeyStatus status;
24 private final String szXtra1;
25 private final String szXtra2;
26
27 InchiKeyOutput(String inchiKey, InchiKeyStatus status, String szXtra1, String szXtra2) {
28 this.inchiKey = inchiKey;
29 this.status = status;
30 this.szXtra1 = szXtra1;
31 this.szXtra2 = szXtra2;
32 }
33
34 public String getInchiKey() {
35 return inchiKey;
36 }
37
38 public InchiKeyStatus getStatus() {
39 return status;
40 }
41
42 /**
43 * Returns the rest of the 256-bit SHA-2 signature for the first block
44 * @return
45 */
46 public String getBlock1HashExtension() {
47 return szXtra1;
48 }
49
50 /**
51 * Returns the rest of the 256-bit SHA-2 signature for the second block
52 * @return
53 */
54 public String getBlock2HashExtension() {
55 return szXtra2;
56 }
57
58 }