提交 35a23c4f 编写于 作者: K kohsuke

added toArray().


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1710 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9c5327c7
...@@ -63,6 +63,13 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>> ...@@ -63,6 +63,13 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
return (Map)Descriptor.toMap(data); return (Map)Descriptor.toMap(data);
} }
/**
* Gets all the {@link Describable}s in an array.
*/
public T[] toArray(T[] array) {
return data.toArray(array);
}
/** /**
* Rebuilds the list by creating a fresh instances from the submitted form. * Rebuilds the list by creating a fresh instances from the submitted form.
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册