2021-10-07 15:48:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
package sop;
|
2021-01-18 18:31:50 +01:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
public class ByteArrayAndResult<T> {
|
2021-01-18 18:31:50 +01:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
private final byte[] bytes;
|
|
|
|
private final T result;
|
2021-01-18 18:31:50 +01:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
public ByteArrayAndResult(byte[] bytes, T result) {
|
|
|
|
this.bytes = bytes;
|
|
|
|
this.result = result;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] getBytes() {
|
|
|
|
return bytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public T getResult() {
|
|
|
|
return result;
|
2021-01-18 18:31:50 +01:00
|
|
|
}
|
|
|
|
}
|