package com.xfestudio.xfeservermanager.api.store;
import com.xfestudio.xfeservermanager.api.util.ApiChecks;
import java.util.List;
public record Page<T>(List<T> items, String nextCursor) {
public Page {
items = ApiChecks.immutableList(items, "items");
nextCursor = nextCursor == null ? "" : nextCursor;
}
public boolean hasNextPage() {
return !nextCursor.isEmpty();
}
}
package com.xfestudio.xfeservermanager.api.store;
import com.xfestudio.xfeservermanager.api.util.ApiChecks;
import java.util.List;
public record Page<T>(List<T> items, String nextCursor) {
public Page {
items = ApiChecks.immutableList(items, "items");
nextCursor = nextCursor == null ? "" : nextCursor;
}
public boolean hasNextPage() {
return !nextCursor.isEmpty();
}
}