class DecreaseRespPars extends AbstractPoResponseParser {

  public int getNewValue() {
    byte[] newValueBuffer = getApduResponse().getDataOut();
    if (newValueBuffer.length == 3) {
      return ByteArrayUtil.threeBytesToInt(newValueBuffer, 0);
    } else {
      throw new IllegalStateException(
          "No counter value available in response to the Decrease command.");
    }
  }

  public  DecreaseRespPars(ApduResponse response, DecreaseCmdBuild builder);

}