class PageInfo {

    void setVisible(int visible) {
        this.visible = min(total, visible);
    }

      PageInfo(int pageSize);
      PageInfo(int pageSize, int page, int visible, int total);

}