Class Notice

java.lang.Object
com.prog3.ipt.Model.LineRide.Notice

public class Notice extends Object
Notice is a class represents a user notice stored into system's database
  • Field Details

    • noticeID

      private String noticeID
    • noticeDate

      private LocalDate noticeDate
    • noticeName

      private String noticeName
    • noticeText

      private String noticeText
    • rideID

      private String rideID
    • lineID

      private String lineID
  • Constructor Details

    • Notice

      public Notice(String noticeID, LocalDate date, String noticeName, String text, String rideID, String lineID)
      Notice constructor
      Parameters:
      noticeID - Index which uniquely identifies a notice
      date - Notice's publication date
      noticeName - Notice's name
      text - Text which notice contains
      rideID - Ride which notice is about
      lineID - Line of the ride which notice is about
  • Method Details

    • setNoticeID

      private void setNoticeID(String noticeID)
    • setNoticeDate

      private void setNoticeDate(LocalDate date)
    • setNoticeName

      private void setNoticeName(String noticeName)
    • setNoticeText

      private void setNoticeText(String text)
    • setRideID

      private void setRideID(String rideID)
    • setLineID

      private void setLineID(String lineID)
    • getNoticeID

      public String getNoticeID()
    • getNoticeDate

      public LocalDate getNoticeDate()
    • getNoticeName

      public String getNoticeName()
    • getNoticeText

      public String getNoticeText()
    • getRideID

      public String getRideID()
    • getLineID

      public String getLineID()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object