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

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

There is a newer version: 2.5.3
Show 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 - 2024 Weber Informatics LLC | Privacy Policy