@Override
    public void deserialize(Buffer buf) {
        uid = buf.readInt();
        if (uid < 0)
            throw new RuntimeException("Forbidden value on uid = " + uid + ", it doesn't respect the following condition : uid < 0");
        qty = buf.readInt();
        if (qty < 0)
            throw new RuntimeException("Forbidden value on qty = " + qty + ", it doesn't respect the following condition : qty < 0");
        price = buf.readInt();
        if (price < 0)
            throw new RuntimeException("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
    }