Class SheetRow<T extends Comparable<T>>

java.lang.Object
de.xima.fc.gui.common.model.data.SheetRow<T>
All Implemented Interfaces:
Serializable, Iterable<SheetCell<T>>

public class SheetRow<T extends Comparable<T>> extends Object implements Serializable, Iterable<SheetCell<T>>
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • SheetRow

      public SheetRow(Long id)
      Parameters:
      id - the id of the row
  • Method Details

    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getCells

      public List<SheetCell<T>> getCells()
      Returns:
      the cells
    • setCells

      public void setCells(List<SheetCell<T>> cells)
      Parameters:
      cells - the cells to set
    • isReadOnly

      public boolean isReadOnly()
      Returns:
      the readOnly
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Parameters:
      readOnly - the readOnly to set
    • getCellCount

      public Integer getCellCount()
    • get

      public SheetCell<T> get(int index)
      Gets the SheetCell at the specified index position
      Parameters:
      index - of the SheetCell
      Returns:
      SheetCell at index position
      Throws:
      IndexOutOfBoundsException - if (index < 0 || index >= number of cells)
    • set

      public void set(T value, int index)
      Sets the value of the SheetCell at the given index position
      Parameters:
      value - Comparable value to be set
      index - of the SheetCell
      Throws:
      IndexOutOfBoundsException - if (index < 0 || index >= number of cells)
    • addCell

      public void addCell(SheetCell<T> cell)
      Adds a cell at the end of the SheetRow
      Parameters:
      cell - SheetCell to be added
    • addCell

      public void addCell(int index, SheetCell<T> cell)
      Adds a cell at the specified index position in the SheetRow
      Parameters:
      index - Integer position of cell to be added
      cell - SheetCell to be added
    • removeCell

      public void removeCell(int index)
      Removes the cell at the given index position in the SheetRow
      Parameters:
      index - position of SheetCell to be removed
    • removeCells

      public void removeCells(int startIdx, int endIdx)
      Removes cells from starting index to end index in the SheetRow
      Parameters:
      startIdx - starting index position of cells to be removed
      endIdx - end index position of cells to be removed
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • iterator

      public Iterator<SheetCell<T>> iterator()
      Specified by:
      iterator in interface Iterable<T extends Comparable<T>>
    • toString

      public String toString()
      Overrides:
      toString in class Object