Lines Matching refs:extraCapacity
324 public Element(int extraCapacity) {
325 this(ANON_NAME, 0, NEED_SLOP + Math.max(0, extraCapacity));
329 * Optional extraCapacity argument is expected number of sub-elements.
335 public Element(String name, int extraCapacity) {
336 this(name, 0, NEED_SLOP + Math.max(0, extraCapacity));
340 * Optional extraCapacity argument is expected number of sub-elements.
346 public Element(String name, String[] attrs, int extraCapacity) {
347 this(name, attrs, (Element[]) null, extraCapacity);
351 * Optional extraCapacity argument is expected extra sub-elements.
357 public Element(String name, Element[] elems, int extraCapacity) {
358 this(name, (String[]) null, elems, extraCapacity);
362 * Optional extraCapacity argument is expected extra sub-elements.
368 public Element(String name, String[] attrs, Object[] elems, int extraCapacity) {
371 + Math.max(0, extraCapacity)
399 * Optional extraCapacity argument is expected extra sub-elements.
405 public Element(Element old, int extraCapacity) {
408 + Math.max(0, extraCapacity) + NEED_SLOP
413 - (size + Math.max(0, extraCapacity) + NEED_SLOP);