Publishers are now exposed to the m2 job type, too.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6945 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-02-02 20:18:29 +00:00
1 parent 9142dadd8a
commit fe44825a62
11 files changed
+125 -59

No files matched your search

+9 -1
View File
@@ -59,8 +59,9 @@ public class Util {
/**
* Creates a filtered sublist.
* @since 1.176
*/
public static <T> List<T> filter( List<?> base, Class<T> type ) {
public static <T> List<T> filter( Iterable<?> base, Class<T> type ) {
List<T> r = new ArrayList<T>();
for (Object i : base) {
if(type.isInstance(i))
@@ -69,6 +70,13 @@ public class Util {
return r;
}
/**
* Creates a filtered sublist.
*/
public static <T> List<T> filter( List<?> base, Class<T> type ) {
return filter((Iterable)base,type);
}
/**
* Pattern for capturing variables. Either $xyz or ${xyz}, while ignoring "$$"
*/