All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.shim.ledger.KeyValue Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019 IBM 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 - 2025 Weber Informatics LLC | Privacy Policy