class BytesIndexKey implements IndexKey {
    /** */
    protected final byte[] key;

    /** */
    public BytesIndexKey(byte[] key) {
        this.key = key;
    }

    /** {@inheritDoc} */
    @Override public Object key() {
        return key;
    }

    /** {@inheritDoc} */
    @Override public IndexKeyType type() {
        return IndexKeyType.BYTES;
    }

    /** {@inheritDoc} */
    @Override public int compare(IndexKey o) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public String toString() {
        return Arrays.toString(key);
    }
}

        byte[] arr0 = key;
        byte[] arr1 = ((BytesIndexKey)o).key;

        if (arr0 == arr1)
            return 0;

        int commonLen = Math.min(arr0.length, arr1.length);
        int unSignArr0;
        int unSignArr1;

        for (int i = 0; i < commonLen; ++i) {
            unSignArr0 = arr0[i] & 255;
            unSignArr1 = arr1[i] & 255;

            if (unSignArr0 != unSignArr1)
                return unSignArr0 > unSignArr1 ? 1 : -1;
        }

        return Integer.signum(Integer.compare(arr0.length, arr1.length));
    
<no_super_class>