Class RowItem<T extends RowItem>

    • Constructor Detail

      • RowItem

        protected RowItem()
    • Method Detail

      • update

        public void update(T item)
        Updates this item with item passed as parameter.

        This will update this instance with the parameter passed as value.

        Specified by:
        update in interface Updatable<T extends RowItem>
        Parameters:
        item - that is an update
      • canBeCastTo

        public final boolean canBeCastTo(java.lang.Object item)
        Ensuring that the item type is the same for both so we don't try casting to an incorrect type of RowItem
        Specified by:
        canBeCastTo in interface Updatable<T extends RowItem>
        Parameters:
        item - to update from
        Returns:
        true if casting can succeed, false otherwise
      • getId

        public java.lang.String getId()
      • setId

        public void setId(java.lang.String id)
      • getDisplayName

        public java.lang.String getDisplayName()
      • setDisplayName

        public void setDisplayName(java.lang.String displayName)
      • getParticipantId

        public java.lang.String getParticipantId()
      • setParticipantId

        public void setParticipantId(java.lang.String participantId)
      • getTimestamp

        public java.lang.Long getTimestamp()
      • setTimestamp

        public void setTimestamp(java.lang.Long timestamp)
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo(RowItem rowItem)
                      throws java.lang.NullPointerException
        Compares two RowItem items by their time values
        Specified by:
        compareTo in interface java.lang.Comparable<RowItem>
        Parameters:
        rowItem - to compare to
        Returns:
        -1,0,1 if this item is less, equals or grater then specified item
        Throws:
        java.lang.NullPointerException - if comparison was not possible
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object