Class HCColGroup

    • Constructor Detail

      • HCColGroup

        public HCColGroup()
    • Method Detail

      • addColumnAt

        @Nonnull
        public final HCColGroup addColumnAt​(@Nonnegative
                                            int nIndex,
                                            @Nullable
                                            IHCCol<?> aCol)
        Add a new column.
        Parameters:
        nIndex - The index where the column should be added
        aCol - the column to add
        Returns:
        this
      • hasColumns

        public final boolean hasColumns()
        Returns:
        true if at least one column is present
      • hasNoColumns

        public final boolean hasNoColumns()
        Returns:
        true if not a single column is present
      • getColumnCount

        @Nonnegative
        public final int getColumnCount()
        Returns:
        The number of contained columns. Always ≥ 0.
      • getAllColumns

        @Nonnull
        @ReturnsImmutableObject
        public final com.helger.commons.collection.impl.ICommonsList<IHCCol<?>> getAllColumns()
        Returns:
        A list of all contained columns. Never null.
      • getColumnOfIndex

        @Nullable
        public final IHCCol<?> getColumnOfIndex​(int nIndex)
        Get the column at the specified index
        Parameters:
        nIndex - The index to retrieve the column from
        Returns:
        null if no such column exists
      • removeColumnAt

        @Nonnull
        public final HCColGroup removeColumnAt​(int nIndex)
        Remove the column at the specified index
        Parameters:
        nIndex - The index of the column to be removed
        Returns:
        this
      • removeAllColumns

        @Nonnull
        public final HCColGroup removeAllColumns()
        Remove all contained columns
        Returns:
        this