@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ProtocolCode that = (ProtocolCode) o;
        return Arrays.equals(version, that.version);
    }
get the first single byte if your protocol code is single code.
@return
src/main/java/com/alipay/remoting/ProtocolCode.java