Skip to content

Order submitted, Trades... require paging process #6

@Min2dat

Description

@Min2dat

CoinTossX/Web/src/main/java/wicket/dataProvider

public class OrderDataProvider extends SortableDataProvider<OrderVO, String>
@OverRide
public Iterator<? extends OrderVO> iterator(long first, long count) {
List newList = new ArrayList(orders);
return newList.subList((int)first, (int)(first + count)).iterator();
//return orders.iterator();
}

I did it by forcibly casting the long type to int, but I am worried about the memory when the data grows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions