@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CosmosChangeFeedFindToken cosmosChangeFeedFindToken = (CosmosChangeFeedFindToken) o;
    return cosmosChangeFeedFindToken.getVersion() == version && cosmosChangeFeedFindToken.getBytesRead() == bytesRead
        && Objects.equals(cosmosChangeFeedFindToken.getStartContinuationToken(), startContinuationToken)
        && Objects.equals(cosmosChangeFeedFindToken.getEndContinuationToken(), endContinuationToken)
        && cosmosChangeFeedFindToken.getTotalItems() == totalItems && cosmosChangeFeedFindToken.getIndex() == index
        && Objects.equals(cosmosChangeFeedFindToken.getCacheSessionId(), cacheSessionId);
  }
Calculate size of the token.
@return size of the token.
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/CosmosChangeFeedFindToken.java