public Promise<List<Map.Entry<UUID, T>>> getOrderedPage(int page, int entriesPerPage) {
        int min = page * entriesPerPage;
        int max = page + entriesPerPage;
        return Schedulers.async().call(() -> {
            List<Map.Entry<UUID, T>> entries = new ArrayList<>();
            try (Connection c = sql.getConnection()) {
                try (PreparedStatement ps = c.prepareStatement(SELECT_TOP.replace("{table}", table))) {
                    ps.setInt(1, min);
                    ps.setInt(2, max);

                    try (ResultSet rs = ps.executeQuery()) {
                        while (rs.next()) {
                            entries.add(Maps.immutableEntry(
                                    UUID.fromString(rs.getString("uuid")),
                                    get(rs, "value")
                            ));
                        }
                    }
                }
            }
            return entries;
        });
    }
Gets a page.

@param page the page
@param entriesPerPage the number of entries per page
@return the page
helper-sql/src/main/java/me/lucko/helper/sql/util/Uuid2PosNumberTable.java