Class EventItem


  • public class EventItem
    extends java.lang.Object
    Class representing an Event for use in the DayItem's recyclerview
    Author:
    Evan Voogd
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String mName  
      private java.lang.String mTimespan  
    • Constructor Summary

      Constructors 
      Constructor Description
      EventItem​(java.lang.String name, java.lang.String timespan, int index)
      Creates an item representing an Event
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns string representing the name of the Event
      java.lang.String getTimespan()
      Returns string representing the timespan of the Event
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mName

        private final java.lang.String mName
      • mTimespan

        private final java.lang.String mTimespan
    • Constructor Detail

      • EventItem

        public EventItem​(java.lang.String name,
                         java.lang.String timespan,
                         int index)
        Creates an item representing an Event
        Parameters:
        name - a string representing the name of the Event
        timespan - a string representing the timespan of the Event
        index - Index into eventSchedule.get(day) for this event
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns string representing the name of the Event
        Returns:
        a string representing the name of the Event
      • getTimespan

        public java.lang.String getTimespan()
        Returns string representing the timespan of the Event
        Returns:
        a string representing the timespan of the Event