Class CellSelectionEvent<T>

  • Type Parameters:
    T - Type of data associated with each cell event.

    public class CellSelectionEvent<T>
    extends Object
    Stores information about a cell being selected or not.
    Since:
    2020-04-15
    Author:
    miki
    • Constructor Detail

      • CellSelectionEvent

        public CellSelectionEvent​(CellInformation<T> information,
                                  boolean selected)
        Creates the event.
        Parameters:
        information - Information about the affected cell.
        selected - Whether or not the cell is now selected.
    • Method Detail

      • reversed

        public CellSelectionEvent<T> reversed()
        Helper method that creates a new event with selection reversed.
        Returns:
        A new object, identical to the current one except isSelected() flag.
      • isSelected

        public boolean isSelected()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object