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(List<T> items)
Add build 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 List<T> items)
items - The items to be added. Assumes the list of items are in descending queue ID order i.e. newest first.public int size()
Copyright © 2019. All rights reserved.