|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<R>
hudson.util.RunList<R>
public class RunList<R extends Run>
List
of Run
s, sorted in the descending date order.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
RunList()
|
|
RunList(Collection<? extends Job> jobs)
|
|
RunList(Job j)
|
|
RunList(View view)
|
Method Summary | ||
---|---|---|
RunList<R> |
byTimestamp(long start,
long end)
Filter the list by timestamp. |
|
RunList<R> |
failureOnly()
Filter the list to non-successful builds only. |
|
static
|
fromRuns(Collection<? extends R> runs)
|
|
R |
get(int index)
Deprecated. as of 1.485 RunList , despite its name, should be really used as Iterable , not as List . |
|
R |
getFirstBuild()
|
|
R |
getLastBuild()
|
|
int |
indexOf(Object o)
|
|
boolean |
isEmpty()
|
|
Iterator<R> |
iterator()
|
|
int |
lastIndexOf(Object o)
|
|
RunList<R> |
limit(int n)
|
|
RunList<R> |
newBuilds()
Reduce the size of the list by only leaving relatively new ones. |
|
RunList<R> |
node(Node node)
Filter the list to builds on a single node only |
|
RunList<R> |
regressionOnly()
Filter the list to regression builds only. |
|
int |
size()
Deprecated. as of 1.485 RunList , despite its name, should be really used as Iterable , not as List . |
|
List<R> |
subList(int fromIndex,
int toIndex)
AbstractList.subList(int, int) isn't very efficient on our Iterable based implementation. |
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, listIterator, listIterator, remove, removeRange, set |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public RunList()
public RunList(Job j)
public RunList(View view)
public RunList(Collection<? extends Job> jobs)
Method Detail |
---|
public Iterator<R> iterator()
iterator
in interface Iterable<R extends Run>
iterator
in interface Collection<R extends Run>
iterator
in interface List<R extends Run>
iterator
in class AbstractList<R extends Run>
public int size()
RunList
, despite its name, should be really used as Iterable
, not as List
.
size
in interface Collection<R extends Run>
size
in interface List<R extends Run>
size
in class AbstractCollection<R extends Run>
public R get(int index)
RunList
, despite its name, should be really used as Iterable
, not as List
.
get
in interface List<R extends Run>
get
in class AbstractList<R extends Run>
public List<R> subList(int fromIndex, int toIndex)
AbstractList.subList(int, int)
isn't very efficient on our Iterable
based implementation.
In fact the range check alone would require us to iterate all the elements,
so we'd be better off just copying into ArrayList.
subList
in interface List<R extends Run>
subList
in class AbstractList<R extends Run>
public int indexOf(Object o)
indexOf
in interface List<R extends Run>
indexOf
in class AbstractList<R extends Run>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<R extends Run>
lastIndexOf
in class AbstractList<R extends Run>
public boolean isEmpty()
isEmpty
in interface Collection<R extends Run>
isEmpty
in interface List<R extends Run>
isEmpty
in class AbstractCollection<R extends Run>
public R getFirstBuild()
public R getLastBuild()
public static <R extends Run> RunList<R> fromRuns(Collection<? extends R> runs)
public RunList<R> limit(int n)
public RunList<R> failureOnly()
public RunList<R> node(Node node)
public RunList<R> regressionOnly()
public RunList<R> byTimestamp(long start, long end)
s<=;e
.
public RunList<R> newBuilds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |