public class HistoryPageFilter<T> extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
hasDownPage |
boolean |
hasUpPage |
long |
newestOnPage |
long |
nextBuildNumber |
long |
oldestOnPage |
List<HistoryPageEntry<Queue.Item>> |
queueItems |
List<HistoryPageEntry<Run>> |
runs |
HistoryWidget |
widget |
Constructor and Description |
---|
HistoryPageFilter(int maxEntries)
Create a history page filter instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Iterable<T> runItems)
Add build items to the History page.
|
void |
add(Iterable<T> runItems,
List<Queue.Item> queueItems)
Add run items and queued items to the History page.
|
void |
setNewerThan(Long newerThan)
Set the 'newerThan' queue ID.
|
void |
setOlderThan(Long olderThan)
Set the 'olderThan' queue ID.
|
void |
setSearchString(String searchString)
Set the search string used to narrow the filtered set of builds.
|
int |
size() |
public final List<HistoryPageEntry<Queue.Item>> queueItems
public final List<HistoryPageEntry<Run>> runs
public boolean hasUpPage
public boolean hasDownPage
public long nextBuildNumber
public HistoryWidget widget
public long newestOnPage
public long oldestOnPage
public HistoryPageFilter(int maxEntries)
maxEntries
- The max number of entries allowed for the page.public void setNewerThan(Long newerThan)
newerThan
- Queue IDs newer/greater than this queue ID take precedence on this page.public void setOlderThan(Long olderThan)
olderThan
- Queue IDs older/less than this queue ID take precedence on this page.public void setSearchString(@NonNull String searchString)
searchString
- The search string.public void add(@NonNull Iterable<T> runItems)
runItems
- The items to be added. Assumes the items are in descending queue ID order i.e. newest first.public void add(@NonNull Iterable<T> runItems, @NonNull List<Queue.Item> queueItems)
runItems
- The items to be added. Assumes the items are in descending queue ID order i.e. newest first.queueItems
- The queue items to be added. Queue items do not need to be sorted.public int size()
Copyright © 2004–2022. All rights reserved.