org.hyperledger.fabric.shim.ledger.KeyValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim Show documentation
Show all versions of fabric-chaincode-shim Show documentation
Hyperledger Fabric Java Chaincode Shim
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.shim.ledger;
/**
* Query Result associating a state key with a value.
*/
public interface KeyValue {
/**
* Returns the state key.
*
* @return key as string
*/
String getKey();
/**
* Returns the state value.
*
* @return value as byte array
*/
byte[] getValue();
/**
* Returns the state value, decoded as a UTF-8 string.
*
* @return value as string
*/
String getStringValue();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy