Class ElementSection


  • public class ElementSection
    extends Section
    • Constructor Detail

      • ElementSection

        public ElementSection()
        Construct a new, empty section instance.
      • ElementSection

        public ElementSection​(int estimatedSize)
        Construct a new, empty section instance.
        Parameters:
        estimatedSize - the estimated number of elements to reserve space for
    • Method Detail

      • elements

        public Element[] elements()
      • elementCount

        public int elementCount()
      • getElement

        public Element getElement​(int idx)
      • addElement

        public int addElement​(Element element)
        Add an element definition to this section.
        Parameters:
        element - the element to add to this section (must not be null)
        Returns:
        the index of the newly-added element