public static ByteArray wrap(final byte[] bytes) {
        return new ByteArray(bytes);
    }
Can use it as a map key,

@author jiachun.fjc
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/util/ByteArray.java