package com.lingniu.ingest.tdenginehistory;

import java.util.List;
import java.util.Optional;

public record TdenginePage<T>(List<T> items, Optional<TdenginePageCursor> nextCursor) {

    public TdenginePage {
        items = items == null ? List.of() : List.copyOf(items);
        nextCursor = nextCursor == null ? Optional.empty() : nextCursor;
    }
}
