提交 af52cd24 编写于 作者: K kohsuke

added the size() method

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15946 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c589aaf8
......@@ -147,6 +147,10 @@ public class CopyOnWriteList<E> implements Iterable<E> {
return core.isEmpty();
}
public int size() {
return core.size();
}
/**
* {@link Converter} implementation for XStream.
*/
......
......@@ -120,6 +120,10 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
return get(d)!=null;
}
public int size() {
return data.size();
}
/**
* Removes an instance by its type.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册